Skip to content

Commit

Permalink
debug docker_nb (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleBonamy authored Oct 13, 2024
1 parent 8b07884 commit e21537e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile_nb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -134,6 +134,7 @@ RUN mamba install -c conda-forge --quiet --yes \
'matplotlib' \
'notebook' \
'nbclassic' \
'netCDF4' \
# 'jupyterhub' \
'jupyterlab' && \
jupyter notebook --generate-config && \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e21537e

Please sign in to comment.