From e21537ef301763c45c1434b7ea7d6e0c00fd4b10 Mon Sep 17 00:00:00 2001 From: CyrilleBonamy Date: Sun, 13 Oct 2024 07:21:11 +0200 Subject: [PATCH] debug docker_nb (#193) --- docker/Dockerfile_nb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile_nb b/docker/Dockerfile_nb index a7a8a9aa..3581b108 100644 --- a/docker/Dockerfile_nb +++ b/docker/Dockerfile_nb @@ -124,7 +124,7 @@ RUN set -x && \ 'jupyter_core' && \ rm micromamba && \ # Pin major.minor version of python - mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \ + # mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \ mamba clean --all -f -y && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" @@ -134,6 +134,7 @@ RUN mamba install -c conda-forge --quiet --yes \ 'matplotlib' \ 'notebook' \ 'nbclassic' \ + 'netCDF4' \ # 'jupyterhub' \ 'jupyterlab' && \ jupyter notebook --generate-config && \ @@ -163,6 +164,7 @@ RUN sed -re "s/c.ServerApp/c.NotebookApp/g" \ /etc/jupyter/jupyter_server_config.py > /etc/jupyter/jupyter_notebook_config.py && \ fix-permissions /etc/jupyter/ + # HEALTHCHECK documentation: https://docs.docker.com/engine/reference/builder/#healthcheck # This healtcheck works well for `lab`, `notebook`, `nbclassic`, `server` and `retro` jupyter commands # https://github.com/jupyter/docker-stacks/issues/915#issuecomment-1068528799