1
0
mirror of https://github.com/balkian/jupyterhub-oauth.git synced 2025-08-29 16:52:21 +00:00

Simplified spawner, added GitLab/OAuth

* Now we avoid using localusers and use a DockerSpawner directy
* There is an option to select other oauthenticator classes
This commit is contained in:
J. Fernando Sánchez
2017-01-25 00:35:44 +01:00
parent f8289e37ee
commit 0bb2ea7963
9 changed files with 61 additions and 99 deletions

View File

@@ -14,13 +14,13 @@ RUN pip install git+git://github.com/jupyter/dockerspawner.git
RUN mkdir /srv/oauthenticator
WORKDIR /srv/oauthenticator
ENV OAUTHENTICATOR_DIR /srv/oauthenticator
ADD addusers.sh /srv/oauthenticator/addusers.sh
ADD userlist /srv/oauthenticator/userlist
ADD ssl /srv/oauthenticator/ssl
RUN chmod 700 /srv/oauthenticator
RUN groupadd hubadmin
RUN echo "%hubadmin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
VOLUME /home
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
RUN ["sh", "/srv/oauthenticator/addusers.sh"]
ENV USERS_DIR /output
VOLUME /home