f0f4e70f1e
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
24 lines
832 B
Django/Jinja
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
|