Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create JupyterLab based version of Dockerfile #347 #356

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/Dockerfile-jupyter
Original file line number Diff line number Diff line change
@@ -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"]
25 changes: 25 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 11 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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=''