Skip to content

Commit

Permalink
Create JupyterLab based version of Dockerfile #347
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Stary committed Sep 21, 2024
1 parent a24bdec commit fe313bd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
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=''

0 comments on commit fe313bd

Please sign in to comment.