This will launch a multi-user MUQ-hIPPYlib environment for classrooms, courses and general fun using Jupyterhub and Jupyter Notebook. Each user has his own home directory.
This scripts are an adaptation of Jake Hale's project available from fenics-jupyter.
Here a list of instructions:
-
(One time only) Install docker. On Ubuntu one can simply enter the command
apt-get install docker.io
-
Build the docker image
sudo docker build -t hippyhub/cmis .
-
Check that the image was created correctly with the command
sudo docker images
-
Start the server
sudo docker run -td -p 80:8000 --name=cmis-hub hippyhub/cmis
-
Check that the server is up
sudo docker ps
-
Check messages from the server
sudo docker logs cmis-hub
-
Connect to server
docker exec -it cmis-hub /bin/bash
-
Stop ad delete the server (always stop the server before rebuilding the docker image)
sudo docker stop cmis-hub & sudo docker rm cmis-hub