File tree Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 7
7
# are not set in the shell environment.
8
8
9
9
# To override these values, set the shell environment variables.
10
+ JUPYTERHUB_VERSION = 0.8.0
10
11
11
12
# Name of Docker machine
12
13
DOCKER_MACHINE_NAME = jupyterhub
@@ -15,7 +16,10 @@ DOCKER_MACHINE_NAME=jupyterhub
15
16
DOCKER_NETWORK_NAME = jupyterhub-network
16
17
17
18
# Single-user Jupyter Notebook server container image
18
- DOCKER_NOTEBOOK_IMAGE = jupyter/scipy-notebook:8f56e3c47fec
19
+ DOCKER_NOTEBOOK_IMAGE = jupyter/minimal-notebook:e1677043235c
20
+
21
+ # the local image we use, after pinning jupyterhub version
22
+ LOCAL_NOTEBOOK_IMAGE = jupyterhub-user
19
23
20
24
# Notebook directory in the container.
21
25
# This will be /home/jovyan/work if the default
Original file line number Diff line number Diff line change 1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
- FROM jupyterhub/jupyterhub-onbuild:0.7.2
3
+ ARG JUPYTERHUB_VERSION
4
+ FROM jupyterhub/jupyterhub-onbuild:$JUPYTERHUB_VERSION
4
5
5
6
# Install dockerspawner, oauth, postgres
6
- RUN /opt/conda/bin/conda install psycopg2=2.7 && \
7
+ RUN /opt/conda/bin/conda install -yq psycopg2=2.7 && \
7
8
/opt/conda/bin/conda clean -tipsy && \
8
- /opt/conda/bin/pip install \
9
- oauthenticator==0.6 .* \
10
- dockerspawner==0.8 .*
9
+ /opt/conda/bin/pip install --no-cache-dir \
10
+ oauthenticator==0.7 .* \
11
+ dockerspawner==0.9 .*
11
12
12
13
# Copy TLS certificate and key
13
14
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
Original file line number Diff line number Diff line change @@ -50,7 +50,11 @@ check-files: userlist $(cert_files) secrets/oauth.env secrets/postgres.env
50
50
pull :
51
51
docker pull $(DOCKER_NOTEBOOK_IMAGE )
52
52
53
- notebook_image : pull
53
+ notebook_image : pull singleuser/Dockerfile
54
+ docker build -t $(LOCAL_NOTEBOOK_IMAGE ) \
55
+ --build-arg JUPYTERHUB_VERSION=$(JUPYTERHUB_VERSION ) \
56
+ --build-arg DOCKER_NOTEBOOK_IMAGE=$(DOCKER_NOTEBOOK_IMAGE ) \
57
+ singleuser
54
58
55
59
build : check-files network volumes
56
60
docker-compose build
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ services:
23
23
build :
24
24
context : .
25
25
dockerfile : Dockerfile.jupyterhub
26
+ args :
27
+ JUPYTERHUB_VERSION : ${JUPYTERHUB_VERSION}
26
28
restart : always
27
29
image : jupyterhub
28
30
container_name : jupyterhub
@@ -40,7 +42,7 @@ services:
40
42
# All containers will join this network
41
43
DOCKER_NETWORK_NAME : ${DOCKER_NETWORK_NAME}
42
44
# JupyterHub will spawn this Notebook image for users
43
- DOCKER_NOTEBOOK_IMAGE : ${DOCKER_NOTEBOOK_IMAGE }
45
+ DOCKER_NOTEBOOK_IMAGE : ${LOCAL_NOTEBOOK_IMAGE }
44
46
# Notebook directory inside user image
45
47
DOCKER_NOTEBOOK_DIR : ${DOCKER_NOTEBOOK_DIR}
46
48
# Using this run command (optional)
Original file line number Diff line number Diff line change
1
+ ARG DOCKER_NOTEBOOK_IMAGE
2
+ FROM $DOCKER_NOTEBOOK_IMAGE
3
+ ARG JUPYTERHUB_VERSION
4
+ RUN python3 -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION
You can’t perform that action at this time.
0 commit comments