kolla/docker/ceph/ceph-nfs/Dockerfile.j2
caowei d69cc8e88b Add ceph-nfs container
Change-Id: I06325d4601128a0b5a2235370fa44012427c29e3
Implements: blueprint ceph-nfs-container
2018-01-19 17:22:56 +08:00

31 lines
794 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}ceph-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block ceph_nfs_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set ceph_nfs_packages = [
'nfs-ganesha',
'nfs-ganesha-ceph',
'nfs-ganesha-rgw'
] %}
{% elif base_distro in ['ubuntu'] %}
{% set ceph_nfs_packages = [
'nfs-ganesha',
'nfs-ganesha-ceph',
'nfs-ganesha-rgw'
] %}
{% endif %}
{{ macros.install_packages(ceph_nfs_packages | customizable("packages")) }}
{% block ceph_nfs_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER ceph