Install jupyterhub-base instead of jupyterhub (#2171)

* Install jupyterhub-base instead of jupyterhub

* Update images/base-notebook/Dockerfile

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Erik Sundell
2024-11-06 16:04:07 +01:00
committed by GitHub
parent 62a85b43b6
commit 28a0b25bce
3 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
FROM quay.io/jupyter/base-notebook 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 && \ mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \ fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"

View File

@@ -39,9 +39,15 @@ USER ${NB_UID}
# files across image layers when the permissions change # files across image layers when the permissions change
WORKDIR /tmp WORKDIR /tmp
RUN mamba install --yes \ RUN mamba install --yes \
'jupyterhub' \ 'jupyterhub-base' \
'jupyterlab' \ 'jupyterlab' \
'nbclassic' \ '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 # Sometimes, when the new version of `jupyterlab` is released, latest `notebook` might not support it for some time
# Old versions of `notebook` (<v7) didn't have a restriction on the `jupyterlab` version, and old `notebook` is getting installed # Old versions of `notebook` (<v7) didn't have a restriction on the `jupyterlab` version, and old `notebook` is getting installed
# That's why we have to pin the minimum notebook version # That's why we have to pin the minimum notebook version

View File

@@ -74,8 +74,10 @@ EXCLUDED_PACKAGES = [
"grpcio-status", "grpcio-status",
"grpcio", "grpcio",
"hdf5", "hdf5",
"jupyterhub-base",
"jupyterlab-git", "jupyterlab-git",
"mamba[version='<2.0.0']", "mamba[version='<2.0.0']",
"nodejs",
"notebook[version='>", "notebook[version='>",
"openssl", "openssl",
"pandas[version='>", "pandas[version='>",