aboutsummaryrefslogtreecommitdiff
path: root/docker/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ceph')
-rw-r--r--docker/ceph/ceph-nfs/Dockerfile.j230
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/ceph/ceph-nfs/Dockerfile.j2 b/docker/ceph/ceph-nfs/Dockerfile.j2
new file mode 100644
index 000000000..a657a9d4a
--- /dev/null
+++ b/docker/ceph/ceph-nfs/Dockerfile.j2
@@ -0,0 +1,30 @@
+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