1
0
mirror of https://github.com/balkian/jupyterhub-oauth.git synced 2024-12-21 11:38:14 +00:00
jupyterhub-oauth/Dockerfile
J. Fernando Sánchez 6f50187ed1 Updated to 0.8.1
Single-user images are not tagged, so we got so far behind with jupyterhub that
oauth stopped working.

Closes #1
2018-01-31 18:42:08 +01:00

28 lines
763 B
Docker

# Designed to be run as
#
# docker run -it -p 8000:8000 jupyter/oauthenticator
FROM jupyterhub/jupyterhub:0.8.1
MAINTAINER Project Jupyter <ipython-dev@scipy.org>
# Install oauthenticator from git
ADD oauthenticator /src/oauthenticator
ADD dockerspawner /src/dockerspawner
RUN pip install /src/oauthenticator
RUN pip install /src/dockerspawner
# Create oauthenticator directory and put necessary files in it
RUN mkdir /srv/oauthenticator
WORKDIR /srv/oauthenticator
ENV OAUTHENTICATOR_DIR /srv/oauthenticator
ADD ssl /srv/oauthenticator/ssl
RUN chmod 700 /srv/oauthenticator
RUN groupadd hubadmin
RUN echo "%hubadmin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
ENV USERS_DIR /output
VOLUME /home