diff --git a/Dockerfile b/Dockerfile index 20dd0f3..f15ad5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..41fc43c --- /dev/null +++ b/README.md @@ -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 diff --git a/start b/start old mode 100644 new mode 100755 index 7e9ac04..c551de2 --- a/start +++ b/start @@ -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