-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create JupyterLab based version of Dockerfile #347
- Loading branch information
Tomas Stary
committed
Sep 21, 2024
1 parent
a24bdec
commit fe313bd
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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='' |