everything works on master perfectly.

This commit is contained in:
M. Pilosov 2019-01-03 09:47:52 -07:00
parent b2c33c7549
commit 46263c24e3
3 changed files with 15 additions and 4 deletions

2
.env
View File

@ -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

View File

@ -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

View File

@ -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