Shaun Smekel 2e0571aee8 Customizations for Multipathd
This patchset contains customization of Dockerfile of the Multipathd
container.

Change-Id: Ibf68b538eaa3cdd0fd6f190f234db845459192ec
Partially-implements: blueprint third-party-plugin-support
2016-08-18 15:12:13 +00:00

17 lines
561 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set multipathd_packages = ['device-mapper-multipath'] %}
{% elif base_distro in ['ubuntu', 'debian'] %}
{% set multipathd_packages = ['multipath-tools'] %}
{% endif %}
RUN {{ macros.install_packages(multipathd_packages | customizable("packages")) }}
{% block multipathd_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}