diff --git a/.env b/.env index 280063c..fd28048 100755 --- a/.env +++ b/.env @@ -19,7 +19,7 @@ DOCKER_MACHINE_NAME=jupyterhub DOCKER_NETWORK_NAME=jupyterhub-network # Single-user Jupyter Notebook server container image -DOCKER_NOTEBOOK_IMAGE=jupyter/datascience-notebook +DOCKER_NOTEBOOK_IMAGE=jupyter/scipy-notebook # the local image we use, after pinning jupyterhub version LOCAL_NOTEBOOK_IMAGE=datascience-user diff --git a/jupyterhub_config.py b/jupyterhub_config.py index daf5975..d613634 100755 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -13,8 +13,8 @@ c = get_config() # Spawn single-user servers as Docker containers c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner' # Spawn containers from this image -#c.DockerSpawner.container_image = os.environ['DOCKER_NOTEBOOK_IMAGE'] -c.DockerSpawner.container_image = "jupyter/datascience-notebook:7254cdcfa22b" +c.DockerSpawner.container_image = os.environ['DOCKER_NOTEBOOK_IMAGE'] +#c.DockerSpawner.container_image = "jupyter/datascience-notebook:7254cdcfa22b" # JupyterHub requires a single-user instance of the Notebook server, so we # default to using the `start-singleuser.sh` script included in the diff --git a/singleuser/Dockerfile b/singleuser/Dockerfile index 849fa52..8e63e35 100755 --- a/singleuser/Dockerfile +++ b/singleuser/Dockerfile @@ -1,5 +1,16 @@ ARG DOCKER_NOTEBOOK_IMAGE FROM $DOCKER_NOTEBOOK_IMAGE ARG JUPYTERHUB_VERSION -RUN python3 -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION #any additional installations go here. + +USER root + +RUN apt-get update && \ + apt-get install -y vim && \ + apt-get install -y gcc && \ + rm -rf /var/lib/apt/lists/* + +USER jovyan + +RUN python3 -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION nbresuse +