jupyterhub / tmpauthenticator

JupyterHub authenticator that hands out temporary accounts for everyone. For use in tmpnb.org
BSD 3-Clause "New" or "Revised" License
23 stars 18 forks source link

Need a working Dockerimage or Dockerfile with jupyterhub_config of tmpauthenticator #21

Closed sridhar562345 closed 3 years ago

sridhar562345 commented 3 years ago

Getting below error when I try using this authenticator on docker

500 : Internal Server Error

Error in Authenticator.pre_spawn_start: FileNotFoundError [Errno 2] No such file or directory: 'systemctl'

You can try restarting your server from the home page.

Dockerfile

FROM jupyter/minimal-notebook:latest
RUN pip install notebook jupyterhub-tmpauthenticator jupyterhub-systemdspawner
COPY jupyterhub_config.py  /home/jovyan/jupyterhub_config.py

jupyterhub_config.py

import tmpauthenticator
import systemdspawner
c=get_config()
c.JupyterHub.authenticator_class=tmpauthenticator.TmpAuthenticator
c.JupyterHub.spawner_class=systemdspawner.SystemdSpawner
c.SystemdSpawner.dynamic_users=True
welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

support[bot] commented 3 years ago

Hi there @sridhar562345 :wave:!

I closed this issue because it was labelled as a support question.

Please help us organize discussion by posting this on the http://discourse.jupyter.org/ forum.

Our goal is to sustain a positive experience for both users and developers. We use GitHub issues for specific discussions related to changing a repository's content, and let the forum be where we can more generally help and inspire each other.

Thanks you for being an active member of our community! :heart: