a b/deeplearn-approach/docker/run_spyder.sh
1
#!/bin/sh
2
3
# Should be platform neutral - at least working on Linux and Windows
4
USER_NAME=`basename $HOME`
5
6
# HHHOME is used to pass the HOME directory of the user running rodeo
7
# and is used in "start.sh" to create the same user within the container.
8
sudo xhost + local:docker
9
10
# Users home is mounted as home
11
# --rm will remove the container as soon as it ends
12
docker run -ti --rm \
13
     -e DISPLAY=$DISPLAY \
14
     -e QT_X11_NO_MITSHM=1  \
15
     -v /tmp/.X11-unix:/tmp/.X11-unix \
16
     -v `pwd`:/sharedfolder \
17
     andreotti/challenge2017:cpu
18
19