Skip to content

Commit

Permalink
add jupyter as a service
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Apr 12, 2024
1 parent ebb3282 commit ed8cb8c
Show file tree
Hide file tree
Showing 7 changed files with 250 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package.json
package-lock.json
node_modules/
.ipynb_checkpoints/

1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ include:
- ./services/frontend/docker-compose.yaml
- ./services/searchapi/docker-compose.yaml
- ./services/proxy/docker-compose.yaml
- ./services/jupyter/docker-compose.yaml
3 changes: 3 additions & 0 deletions services/jupyter/config/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BE_BASE_URL="http://backend:3000/api/v3/"
USERNAME="admin"
PASSWORD="2jf70TPNZsS"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
228 changes: 228 additions & 0 deletions services/jupyter/config/notebooks/pyscicat.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions services/jupyter/config/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyscicat>=0.4.4
15 changes: 15 additions & 0 deletions services/jupyter/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
jupyter:
image: quay.io/jupyter/base-notebook:x86_64-notebook-7.1.2
depends_on:
backend:
condition: service_healthy
labels:
- traefik.http.routers.jupyter.rule=Host(`jupyter.localhost`)
- traefik.http.services.jupyter.loadbalancer.server.port=8888
volumes:
- ./config/requirements.txt:/home/jovyan/.requirements.txt
- ./config/notebooks:/home/jovyan/notebooks
env_file:
- config/.env
command: /bin/bash -c "pip install --no-cache-dir -r .requirements.txt && start-notebook.py --NotebookApp.token=''"

Check failure on line 15 in services/jupyter/docker-compose.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

15:81 [line-length] line too long (119 > 80 characters)

0 comments on commit ed8cb8c

Please sign in to comment.