Move persist storage path
This commit is contained in:
parent
4df2637ff5
commit
e8fe0ea8f2
@ -17,4 +17,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY supervisor-sshd.conf /etc/supervisor/conf.d/sshd.conf
|
||||
#COPY supervisor-vncd.conf /etc/supervisor/conf.d/vncd.conf
|
||||
|
||||
VOLUME ["/mnt/persist"]
|
||||
|
||||
ENTRYPOINT ["/start"]
|
||||
|
1
README.md
Normal file
1
README.md
Normal file
@ -0,0 +1 @@
|
||||
docker run -env _IMG_USERNAME=dave -env _IMG_PASSWORD=sadf1234 -v /host/persist/:/mnt/persist/ -v /mnt/realmsmb:/media/realm -p 49059:5900 49022:22 dpedu
|
5
start
Normal file → Executable file
5
start
Normal file → Executable file
@ -16,8 +16,9 @@ chmod 600 /home/${_IMG_USERNAME}/.vnc/passwd
|
||||
|
||||
su -c "vncserver -geometry 1280x800 :0" $_IMG_USERNAME
|
||||
|
||||
if [ -x "/home/${_IMG_USERNAME}/.setup.sh" ] ; then
|
||||
/home/${_IMG_USERNAME}/.setup.sh &
|
||||
if [ -x "/mnt/persist/setup.sh" ] ; then
|
||||
/mnt/persist/setup.sh &
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
supervisord
|
||||
|
Loading…
Reference in New Issue
Block a user