85cdb0b894
manila-data package is included as part of openstack-manila installed in manila-base image. This change removes exit while building for rpm binary images. http://cbs.centos.org/koji/rpminfo?rpmID=86923 Change-Id: I0c8e65a99cd96a3fef159519efd51bdcee1af30f Closes-Bug: #1671667
40 lines
950 B
Django/Jinja
40 lines
950 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block manila_data_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['debian', 'ubuntu'] %}
|
|
|
|
{% set manila_data_packages = [
|
|
'manila-data'
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set manila_data_packages = [
|
|
'nfs-utils'
|
|
] %}
|
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
|
|
{% set manila_data_packages = [
|
|
'nfs-common'
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(manila_data_packages | customizable("packages")) }}
|
|
|
|
{% block manila_data_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER manila
|