summaryrefslogtreecommitdiff
path: root/docker/swift/swift-account/Dockerfile.j2
blob: dee2a1f7a516632ab6204ea6ad8da33d95c08d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM {{ namespace }}/{{ image_prefix }}swift-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block swift_account_header %}{% endblock %}

{% import "macros.j2" as macros with context %}

{% if install_type == 'binary' %}
    {% if base_package_type == 'rpm' %}
        {% set swift_acount_packages = ['openstack-swift-account'] %}
    {% elif base_package_type == 'deb' %}
        {% set swift_acount_packages = ['swift-account'] %}
    {% endif %}

{{ macros.install_packages(swift_acount_packages | customizable("packages")) }}

{% endif %}

{% block swift_account_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER swift