summaryrefslogtreecommitdiff
path: root/docker/swift/swift-container/Dockerfile.j2
blob: 645660b813530d9d62947baca88908728231d414 (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_container_header %}{% endblock %}

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

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

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

{% endif %}

{% block swift_container_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER swift