everything works on master perfectly.
This commit is contained in:
parent
b2c33c7549
commit
46263c24e3
2
.env
2
.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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user