kolla/docker/manila/manila-share/Dockerfile.j2
caowei a71a61a471 Add ceph-common package to manila-share container
Change-Id: I6248152d9a272a1cfa3ebc549428b67ead111f45
Implements: blueprint manila-cephfs-backend
2017-10-30 10:25:15 +08:00

45 lines
1.2 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block manila_share_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set manila_share_packages = [
'openstack-manila-share',
'ceph-common'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set manila_share_packages = [
'manila-share',
'ceph-common'
] %}
{% endif %}
{{ macros.install_packages(manila_share_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set manila_share_packages = [
'ceph-common'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set manila_share_packages = [
'ceph-common'
] %}
{% endif %}
{{ macros.install_packages(manila_share_packages | customizable("packages")) }}
{% endif %}
{% block manila_share_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER manila