Dockerfile for the c2s toolbox with IPython support.
The image is available as an automated build on Docker Hub.
If you don't need IPython, consider using c2s-docker instead.
How to use
Please note that you might need to prefix all docker commands with
sudo depending on your docker setup.
After installing Docker, get the
c2s-ipython Docker image:
docker pull jonasrauber/c2s-ipython
Alternatively, you can build the image yourself, however the build process may take some time.
docker build --rm -t jonasrauber/c2s-ipython https://github.com/jonasrauber/c2s-ipython-docker.git
You can than use it similar to the ipython/scipyserver docker image.
docker run -it --rm -p 443:8888 -e "PASSWORD=MakeAPassword" -v "$PWD:/notebooks" jonasrauber/c2s-ipython
You should than be able to reach the IPython notebook at https://hostname. Please change the password. You might choose another port instead of 443. If you don't want to use HTTPS, set the
USE_HTTP environment variable
docker run -it --rm -p 80:8888 -e "PASSWORD=MakeAPassword" -e "USE_HTTP=1" -v "$PWD:/notebooks" jonasrauber/c2s-ipython
c2s visualize workaround
c2s visualize from within a Docker container requires a workaround as described in issue #3.
The following steps work on OS X:
brew install socat socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" # in another window docker run -it --rm -e DISPLAY=192.168.1.2:0 -v $PWD:/data/workdir jonasrauber/c2s visualize data.0.mat
The ip address 192.168.1.2 needs to be replaced with the respective host ip (i.e. the ip of OS X).