mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add nfs
This commit is contained in:
parent
39b2387334
commit
ba8a2c6d10
@ -114,6 +114,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] mosquitto
|
- [x] mosquitto
|
||||||
- [x] motion-arm :+1:
|
- [x] motion-arm :+1:
|
||||||
- [x] ndscheduler
|
- [x] ndscheduler
|
||||||
|
- [x] nfs
|
||||||
- [x] nginx
|
- [x] nginx
|
||||||
- [x] ntopng
|
- [x] ntopng
|
||||||
- [x] nullmailer
|
- [x] nullmailer
|
||||||
@ -378,7 +379,6 @@ A collection of delicious docker recipes.
|
|||||||
- [x] mongo
|
- [x] mongo
|
||||||
- [x] ccrisan/motioneye
|
- [x] ccrisan/motioneye
|
||||||
- [x] neo4j
|
- [x] neo4j
|
||||||
- [x] erichough/nfs-server
|
|
||||||
- [x] luzifer/nginx-sso
|
- [x] luzifer/nginx-sso
|
||||||
- [x] n8nio/n8n
|
- [x] n8nio/n8n
|
||||||
- [x] illuspas/node-media-server :cn:
|
- [x] illuspas/node-media-server :cn:
|
||||||
|
@ -7,7 +7,7 @@ MAINTAINER EasyPi Software Foundation
|
|||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt update \
|
&& apt update \
|
||||||
&& apt install -y nfs-ganesha nfs-ganesha-vfs tini \
|
&& apt install -y --no-install-recommends nfs-ganesha nfs-ganesha-vfs tini \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY ./docker-entrypoint.sh /entrypoint.sh
|
COPY ./docker-entrypoint.sh /entrypoint.sh
|
||||||
|
8
nfs/README.md
Normal file
8
nfs/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
nfs
|
||||||
|
===
|
||||||
|
|
||||||
|
[NFS-Ganesha][1] is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems.
|
||||||
|
|
||||||
|
> :warning: ~90 seconds to sync.
|
||||||
|
|
||||||
|
[1]: https://github.com/nfs-ganesha/nfs-ganesha
|
@ -1,12 +1,13 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
nfs:
|
nfs:
|
||||||
build: .
|
image: easypi/nfs
|
||||||
image: vimagick/nfs
|
|
||||||
ports:
|
|
||||||
- "2049:2049"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
environment:
|
environment:
|
||||||
|
- EXPORT_ID=0
|
||||||
- EXPORT_PATH=/data
|
- EXPORT_PATH=/data
|
||||||
|
- PSEUDO_PATH=/
|
||||||
|
privileged: true
|
||||||
|
network_mode: host
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# https://github.com/janeczku/docker-nfs-ganesha/blob/master/rootfs/opt/start_nfs.sh
|
||||||
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# environment variables
|
# environment variables
|
||||||
|
|
||||||
: ${EXPORT_PATH:="/data"}
|
: ${EXPORT_PATH:="/data/nfs"}
|
||||||
: ${PSEUDO_PATH:="/"}
|
: ${PSEUDO_PATH:="/"}
|
||||||
: ${EXPORT_ID:=0}
|
: ${EXPORT_ID:=0}
|
||||||
: ${PROTOCOLS:=4}
|
: ${PROTOCOLS:=4}
|
||||||
@ -52,13 +55,16 @@ bootstrap_config() {
|
|||||||
echo "* Writing configuration"
|
echo "* Writing configuration"
|
||||||
cat <<END >${GANESHA_CONFIG}
|
cat <<END >${GANESHA_CONFIG}
|
||||||
|
|
||||||
NFSV4 { Graceless = ${GRACELESS}; }
|
NFSV4 {
|
||||||
EXPORT{
|
Graceless = ${GRACELESS};
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT {
|
||||||
Export_Id = ${EXPORT_ID};
|
Export_Id = ${EXPORT_ID};
|
||||||
Path = "${EXPORT_PATH}";
|
Path = "${EXPORT_PATH}";
|
||||||
Pseudo = "${PSEUDO_PATH}";
|
Pseudo = "${PSEUDO_PATH}";
|
||||||
FSAL {
|
FSAL {
|
||||||
name = VFS;
|
Name = VFS;
|
||||||
}
|
}
|
||||||
Access_type = RW;
|
Access_type = RW;
|
||||||
Disable_ACL = true;
|
Disable_ACL = true;
|
||||||
@ -66,7 +72,7 @@ EXPORT{
|
|||||||
Protocols = ${PROTOCOLS};
|
Protocols = ${PROTOCOLS};
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_DEFAULTS{
|
EXPORT_DEFAULTS {
|
||||||
Transports = ${TRANSPORTS};
|
Transports = ${TRANSPORTS};
|
||||||
SecType = ${SEC_TYPE};
|
SecType = ${SEC_TYPE};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user