Move persist storage path

This commit is contained in:
dave 2016-07-13 22:45:06 -07:00
parent 4df2637ff5
commit e8fe0ea8f2
3 changed files with 6 additions and 2 deletions

View File

@ -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
View 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
View 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