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

{% block swift_object_expirer_header %}{% endblock %}

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

{% if install_type == 'binary' %}
    {% if base_package_type == 'rpm' %}
        # RDO packages swift-object-expirer in openstack-swift-proxy
        {% set swift_object_expirer_packages = ['openstack-swift-proxy'] %}
    {% elif base_package_type == 'deb' %}
        {% set swift_object_expirer_packages = ['swift-object-expirer'] %}
    {% endif %}

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

{% endif %}

{% block swift_object_expirer_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER swift