From 28a0b25bcec1a6ee25421ddf8a3e2d156259a3ed Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 6 Nov 2024 16:04:07 +0100 Subject: [PATCH] Install jupyterhub-base instead of jupyterhub (#2171) * Install jupyterhub-base instead of jupyterhub * Update images/base-notebook/Dockerfile --------- Co-authored-by: Ayaz Salikhov --- docs/using/recipe_code/jupyterhub_version.dockerfile | 2 +- images/base-notebook/Dockerfile | 8 +++++++- tests/docker-stacks-foundation/test_packages.py | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/using/recipe_code/jupyterhub_version.dockerfile b/docs/using/recipe_code/jupyterhub_version.dockerfile index 7fd53018..22c9dfa1 100644 --- a/docs/using/recipe_code/jupyterhub_version.dockerfile +++ b/docs/using/recipe_code/jupyterhub_version.dockerfile @@ -1,6 +1,6 @@ FROM quay.io/jupyter/base-notebook -RUN mamba install --yes 'jupyterhub==4.0.1' && \ +RUN mamba install --yes 'jupyterhub-base==4.0.1' && \ mamba clean --all -f -y && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" diff --git a/images/base-notebook/Dockerfile b/images/base-notebook/Dockerfile index dd068c80..261cf3e6 100644 --- a/images/base-notebook/Dockerfile +++ b/images/base-notebook/Dockerfile @@ -39,9 +39,15 @@ USER ${NB_UID} # files across image layers when the permissions change WORKDIR /tmp RUN mamba install --yes \ - 'jupyterhub' \ + 'jupyterhub-base' \ 'jupyterlab' \ 'nbclassic' \ + # nodejs has historically been installed indirectly as a dependency. + # When it was no longer getting installed indirectly, + # we started installing it explicitly to avoid introducing a breaking change + # for users building on top of these images. + # See: https://github.com/jupyter/docker-stacks/pull/2171 + 'nodejs' \ # Sometimes, when the new version of `jupyterlab` is released, latest `notebook` might not support it for some time # Old versions of `notebook` (",