Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Run JupyterHub master!
Browse files Browse the repository at this point in the history
We want to get access to the eventlogging feature
(jupyterhub/jupyterhub#2698) and the
user-redirect customization
(jupyterhub/jupyterhub#2790?)

This is a little scary, but there is enough testing that I feel
this should be fine.
  • Loading branch information
yuvipanda committed Oct 28, 2019
1 parent f2a3621 commit f533801
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion images/hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt update && apt install --yes curl python
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-245.0.0-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-245.0.0-linux-x86_64.tar.gz && \
mv google-cloud-sdk /usr/local/google-cloud-sdk && \
rm google-cloud-sdk-245.0.0-linux-x86_64.tar.gz
rm google-cloud-sdk-245.0.0-linux-x86_64.tar.gz

ENV PATH /usr/local/google-cloud-sdk/bin:${PATH}
RUN gcloud components install kubectl
Expand All @@ -19,4 +19,13 @@ RUN python3 -m pip install --no-cache /srv/sparklyspawner
COPY canvasauthenticator /srv/canvasauthenticator
RUN python3 -m pip install --no-cache /srv/canvasauthenticator

# Install JupyterHub from master!
# This is scary-ish, but we need JupyterHub master for the analytics / user-redirect work
# npm's dependencies seem to be not well specified in default apt repositories, so we need to explicitly add them
RUN apt-get update --yes --quiet && \
apt-get install --yes --no-install-recommends nodejs-dev node-gyp libssl1.0-dev npm && \
rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install git+https://github.com/jupyterhub/jupyterhub.git@2847c3a90c241b212b89aef6181b6da687948a03

USER ${NB_USER}

0 comments on commit f533801

Please sign in to comment.