kolla/docker/swift/swift-object-expirer/Dockerfile.j2
Martin André f0f4e70f1e Clarify comment about swift-object-expirer for RDO
The rational for packaging swift-object-expirer in
openstack-swift-proxy is detailed in
https://bugzilla.redhat.com/show_bug.cgi?id=1382921

It is a conscious packaging choice and not a bug, and as so update the
comment in swift-object-expirer image.

Change-Id: Ibccfa1482d3aeccf86a57603d9dedecbcc7d097c
2017-06-09 08:27:43 +02:00

24 lines
832 B
Django/Jinja

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_distro in ['centos', 'oraclelinux', 'rhel'] %}
# RDO packages swift-object-expirer in openstack-swift-proxy
{% set swift_object_expirer_packages = ['openstack-swift-proxy'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set swift_object_expirer_packages = ['swift-object'] %}
{% endif %}
{{ macros.install_packages(swift_object_expirer_packages | customizable("packages")) }}
{% endif %}
{% block swift_object_expirer_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER swift