a6ccbe1803
Closes-Bug: #1639011 Change-Id: Icc4e798590645910de1a86eaf46082343d999f6a
30 lines
730 B
Django/Jinja
30 lines
730 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block manila_data_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
{% set manila_data_packages = [
|
|
'manila-data'
|
|
] %}
|
|
|
|
{{ macros.install_packages(manila_data_packages | customizable("packages")) }}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% block manila_data_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER manila
|