|
1 | | -FROM registry.spin.nersc.gov/das/jupyterhub-base.gaffer:latest |
| 1 | +ARG branch=unknown |
| 2 | + |
| 3 | +FROM registry.spin.nersc.gov/das/jupyterhub-base.${branch}:latest |
2 | 4 | LABEL maintainer="Rollin Thomas <rcthomas@lbl.gov>" |
| 5 | +WORKDIR /srv |
3 | 6 |
|
4 | | -# Install gsissh |
| 7 | +# Authenticator and spawner |
5 | 8 |
|
6 | 9 | RUN \ |
7 | | - apt-get update && \ |
8 | | - apt-get install --yes \ |
9 | | - apt-transport-https && \ |
10 | | - echo "deb http://downloads.globus.org/toolkit/gt6/stable/deb/ jessie contrib" >> /etc/apt/sources.list && \ |
11 | | - apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 44AE7EC2FAF24365 && \ |
12 | | - apt-get update && \ |
13 | | - apt-get install --yes \ |
14 | | - gsi-openssh-clients |
| 10 | + pip install git+https://github.com/nersc/sshapiauthenticator.git && \ |
| 11 | + pip install git+https://github.com/nersc/sshspawner.git |
| 12 | + |
| 13 | +# MFA-enabled login template |
15 | 14 |
|
16 | | -# Add certs |
| 15 | +ADD templates templates |
17 | 16 |
|
18 | | -ADD certs /etc/grid-security/certificates |
| 17 | +# Install announcement service components |
19 | 18 |
|
20 | | -# JupyterHub GSI Authenticator and SSH Spawner from NERSC |
21 | | - |
22 | 19 | RUN \ |
23 | | - pip install --no-cache-dir git+https://github.com/NERSC/gsiauthenticator.git && \ |
24 | | - pip install --no-cache-dir git+https://github.com/NERSC/sshspawner.git |
| 20 | + cp /tmp/jupyterhub/examples/service-announcement/announcement.py . && \ |
| 21 | + cp /tmp/jupyterhub/examples/service-announcement/templates/page.html templates/. |
| 22 | + |
| 23 | +# Hub scripts |
| 24 | + |
| 25 | +ADD hub-scripts/*.sh /srv/ |
25 | 26 |
|
26 | 27 | # Volume for user cert/key files |
27 | 28 |
|
28 | 29 | VOLUME /certs |
29 | 30 |
|
30 | | -# Config and entrypoint script |
| 31 | +# Entrypoint and command |
31 | 32 |
|
32 | | -ADD jupyterhub_config.py docker-entrypoint.sh /srv/ |
33 | | -ADD hub-scripts/*.sh /srv/ |
34 | | - |
35 | | -WORKDIR /srv |
| 33 | +ADD docker-entrypoint.sh jupyterhub_config.py /srv/ |
36 | 34 | RUN chmod +x docker-entrypoint.sh |
37 | | -CMD ["jupyterhub", "--debug"] |
38 | 35 | ENTRYPOINT ["./docker-entrypoint.sh"] |
| 36 | +CMD ["jupyterhub", "--debug"] |
0 commit comments