attempt at nfs docker
This commit is contained in:
24
kubernetes/nfs-server/entrypoint.sh
Normal file
24
kubernetes/nfs-server/entrypoint.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ALLOWED_CLIENTS="${ALLOWED_CLIENTS:-*}"
|
||||
|
||||
echo "/exports $ALLOWED_CLIENTS(rw,sync,no_subtree_check,no_root_squash)" > /etc/exports
|
||||
|
||||
rpcbind || true
|
||||
rpc.statd || true
|
||||
|
||||
echo "Starting NFS server..."
|
||||
|
||||
|
||||
|
||||
mount -t nfsd nfsd /proc/fs/nfsd
|
||||
|
||||
rpc.nfsd -N 3 -V 4 --grace-time 10 $nfsd_debug_opt &
|
||||
rpc.mountd -N 2 -N 3 -V 4 --foreground $mountd_debug_opt &
|
||||
|
||||
wait
|
||||
|
||||
# rpc.mountd -N 2 -N 3 -V 4 --foreground
|
||||
|
||||
# wait
|
||||
Reference in New Issue
Block a user