fix: JupyterHub Dockerfile - add eric user, sudo, fix DB path (4 slashes)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
# JupyterHub configuration for Smart City VRE
|
||||
# Uses NativeAuthenticator with LocalProcessSpawner
|
||||
# Build: 2026-06-01-0915
|
||||
|
||||
import sys as _sys
|
||||
|
||||
c.JupyterHub.ip = '0.0.0.0'
|
||||
c.JupyterHub.port = 8000
|
||||
@@ -9,14 +13,14 @@ c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator'
|
||||
c.Authenticator.admin_users = {'admin'}
|
||||
c.Authenticator.allow_all = True
|
||||
|
||||
# Spawner — use SimpleLocalProcessSpawner (default in JupyterHub 5.x)
|
||||
# This spawner runs singleuser servers as subprocesses
|
||||
c.JupyterHub.spawner_class = 'jupyterhub.spawner.SimpleLocalProcessSpawner'
|
||||
# Spawner: Simple local spawner (single-node, shared environment)
|
||||
c.JupyterHub.spawner_class = 'simple'
|
||||
c.Spawner.cmd = ['jupyterhub-singleuser']
|
||||
c.Spawner.default_url = '/lab'
|
||||
c.Spawner.http_timeout = 300
|
||||
c.Spawner.start_timeout = 300
|
||||
c.Spawner.http_timeout = 120
|
||||
|
||||
# Database and cookies - use absolute paths
|
||||
# Database and cookies - use absolute path (4 slashes!)
|
||||
c.JupyterHub.cookie_secret_file = '/srv/jupyterhub/jupyterhub_cookie_secret'
|
||||
c.JupyterHub.db_url = 'sqlite:////srv/jupyterhub/jupyterhub.sqlite'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user