Skip to content
Snippets Groups Projects
Commit d1ab5659 authored by Jan David Mol's avatar Jan David Mol
Browse files

Have Jupyter expose the storage inside our checkout, to allow files stored...

Have Jupyter expose the storage inside our checkout, to allow files stored there to be version managed
parent 9560938c
Branches
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ else ...@@ -81,7 +81,7 @@ else
endif endif
DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) XAUTHORITY=$(XAUTHORITY) TANGO_HOST=$(TANGO_HOST) \ DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) XAUTHORITY=$(XAUTHORITY) TANGO_HOST=$(TANGO_HOST) \
NETWORK_MODE=$(NETWORK_MODE) XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) TANGO_SKA_CONTAINER_MOUNT=$(TANGO_SKA_CONTAINER_MOUNT) TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) MYSQL_HOST=$(MYSQL_HOST) \ NETWORK_MODE=$(NETWORK_MODE) XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) TANGO_SKA_CONTAINER_MOUNT=$(TANGO_SKA_CONTAINER_MOUNT) TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) TANGO_LOFAR_CONTAINER_DIR=${TANGO_LOFAR_CONTAINER_DIR} MYSQL_HOST=$(MYSQL_HOST) \
CONTAINER_NAME_PREFIX=$(CONTAINER_NAME_PREFIX) COMPOSE_IGNORE_ORPHANS=true CONTAINER_NAME_PREFIX=$(CONTAINER_NAME_PREFIX) COMPOSE_IGNORE_ORPHANS=true
......
...@@ -16,6 +16,8 @@ services: ...@@ -16,6 +16,8 @@ services:
jupyter: jupyter:
build: build:
context: jupyter context: jupyter
args:
JUPYTER_WORKDIR: ${TANGO_LOFAR_CONTAINER_DIR}/jupyter-notebooks
container_name: ${CONTAINER_NAME_PREFIX}jupyter container_name: ${CONTAINER_NAME_PREFIX}jupyter
network_mode: ${NETWORK_MODE} network_mode: ${NETWORK_MODE}
volumes: volumes:
......
...@@ -23,4 +23,6 @@ RUN sudo chmod +x /usr/bin/tini ...@@ -23,4 +23,6 @@ RUN sudo chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"] ENTRYPOINT ["/usr/bin/tini", "--"]
# Start jupyter notebooks on startup of container # Start jupyter notebooks on startup of container
ARG JUPYTER_WORKDIR=/app # working directory is what Jupyter will expose as storage for its notebooks
WORKDIR ${JUPYTER_WORKDIR}
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=", "--NotebookApp.password="] CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=", "--NotebookApp.password="]
test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment