forked from janeczku/docker-nfs-ganesha
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
26 lines (22 loc) · 1.09 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
FROM ubuntu:xenial
MAINTAINER Mitchell Hewes <[email protected]>
# install prerequisites
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FE869A9 \
&& echo "deb http://ppa.launchpad.net/gluster/nfs-ganesha/ubuntu xenial main" > /etc/apt/sources.list.d/nfs-ganesha-2.5.list \
&& echo "deb http://ppa.launchpad.net/gluster/libntirpc/ubuntu xenial main" > /etc/apt/sources.list.d/libntirpc-1.5.list \
&& echo "deb http://ppa.launchpad.net/gluster/glusterfs-3.11/ubuntu xenial main" > /etc/apt/sources.list.d/glusterfs-3.11.list \
&& apt-get update \
&& apt-get install -y netbase nfs-common dbus nfs-ganesha nfs-ganesha-fsal glusterfs-common \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& mkdir -p /run/rpcbind /export /var/run/dbus \
&& touch /run/rpcbind/rpcbind.xdr /run/rpcbind/portmap.xdr \
&& chmod 755 /run/rpcbind/* \
&& chown messagebus:messagebus /var/run/dbus
# 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"]