forked from ananace/docker-nfs-ganesha-ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:focal
LABEL Name=nfs-ganesha-ceph \
Version=3.5 \
Maintainer="Alexander Olofsson <[email protected]>"
# install prerequisites
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y gnupg curl --no-install-recommends \
&& curl -sSL 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x10353E8834DC57CA' | apt-key add - \
&& echo "deb http://ppa.launchpad.net/nfs-ganesha/nfs-ganesha-3.0/ubuntu focal main" > /etc/apt/sources.list.d/nfs-ganesha.list \
&& echo "deb http://ppa.launchpad.net/nfs-ganesha/libntirpc-3.0/ubuntu focal main" > /etc/apt/sources.list.d/libntirpc.list \
&& apt-get update \
&& apt-get install -y liburcu6 netbase nfs-common dbus nfs-ganesha nfs-ganesha-ceph nfs-ganesha-rados-grace nfs-ganesha-rados-urls nfs-ganesha-vfs libnss-sss netcat --no-install-recommends \
&& apt-get remove -y curl gnupg \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& mkdir -p /run/rpcbind /export /var/run/dbus \
&& chown messagebus:messagebus /var/run/dbus \
&& touch /run/rpcbind/rpcbind.xdr /run/rpcbind/portmap.xdr \
&& chmod 755 /run/rpcbind/*
# Add startup script
COPY start.sh /
# NFS ports and portmapper
EXPOSE 2049 38465-38467 662 111/udp 111
# Start Ganesha NFS daemon by default
CMD ["/start.sh"]