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

Moved Jupyter settings to compose yml file to allow combination of entry...

Moved Jupyter settings to compose yml file to allow combination of entry points, and clearer separation of responsibilities
parent 38666138
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,6 @@ services:
jupyter:
build:
context: jupyter
args:
JUPYTER_WORKDIR: ${TANGO_LOFAR_CONTAINER_DIR}/jupyter-notebooks
container_name: ${CONTAINER_NAME_PREFIX}jupyter
network_mode: ${NETWORK_MODE}
volumes:
......@@ -27,3 +25,11 @@ services:
- DISPLAY=${DISPLAY}
ports:
- "8888:8888"
working_dir: ${TANGO_LOFAR_CONTAINER_DIR}/jupyter-notebooks
entrypoint:
- /usr/local/bin/wait-for-it.sh
- ${TANGO_HOST}
- --timeout=30
- --strict
- --
- /usr/bin/tini -- jupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token= --NotebookApp.password=
......@@ -20,9 +20,3 @@ COPY jupyter-kernels /usr/local/share/jupyter/kernels/
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN sudo chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
# 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="]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment