From 1d22fb17963c29ae2c286b4abb586daed6a149da Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Wed, 27 Sep 2023 12:00:15 -0700 Subject: [PATCH] Install nbgitpuller in the base image [nbgitpuller](https://github.com/jupyterhub/nbgitpuller/) is a very popular way to distribute content to users, both on mybinder.org as well as on JupyterHubs. On Binder, this allows for fast launches where the environment is separated from the content (see https://discourse.jupyter.org/t/tip-speed-up-binder-launches-by-pulling-github-content-in-a-binder-link-with-nbgitpuller/922). So by putting nbgitpuller in these images, users can simply pick an image to launch and then just pull in the content they need, instead of having to rebuild their own image. It's also extremely popular when used with JupyterHub, and is included by default in the [TLJH](https://tljh.jupyter.org) distribution. --- images/base-notebook/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/base-notebook/Dockerfile b/images/base-notebook/Dockerfile index 5f47a5d425..5aec72db73 100644 --- a/images/base-notebook/Dockerfile +++ b/images/base-notebook/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get update --yes && \ USER ${NB_UID} -# Install JupyterLab, Jupyter Notebook, JupyterHub and NBClassic +# Install JupyterLab, Jupyter Notebook, nbgitpuller, JupyterHub and NBClassic # Generate a Jupyter Server config # Cleanup temporary files # Correct permissions @@ -39,6 +39,7 @@ RUN mamba install --yes \ 'jupyterlab' \ 'notebook' \ 'jupyterhub' \ + 'nbgitpuller' \ 'nbclassic' && \ jupyter server --generate-config && \ mamba clean --all -f -y && \