diff --git a/docker/Dockerfile-jupyter b/docker/Dockerfile-jupyter new file mode 100644 index 0000000..fd6903b --- /dev/null +++ b/docker/Dockerfile-jupyter @@ -0,0 +1,5 @@ +FROM openworm/openworm:latest + +RUN python -m pip install --user jupyterlab + +ENTRYPOINT ["python3", "-m", "jupyterlab", "--allow-root", "--ip", "0.0.0.0"] \ No newline at end of file diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..b77227c --- /dev/null +++ b/docker/README.md @@ -0,0 +1,25 @@ +# Docker Related Files + +## Prerequisites + +Installed and configured docker and docker-compose are necessary to successfully +run the container. + +## Building and running the container + +The container is build by +``` +docker-compose build +``` +and started by +``` +docker-compose up -d +``` + +## JupyterLab setup + +To enter to the JupyterLab instance start the container and open +http://127.0.0.1:8888/lab + +All the programs available in the openworm/openworm image are available in the +jupyterlab interface. diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..2505558 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3" +services: + jupyter: + build: + context: .. + dockerfile: docker/Dockerfile-jupyter + volumes: + - ../output:/home/ow/shared/output/ + network_mode: host + # user: ${MY_UID}:${MY_GID} + entrypoint: python3 -m jupyterlab --allow-root --NotebookApp.token=''