... | ... | @@ -47,6 +47,7 @@ docker-compose up -d |
|
|
docker volume create portainer_data
|
|
|
docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
## Activating `jupyterhub` sur `romeo`
|
... | ... | @@ -57,6 +58,37 @@ nohup jupyterhub & |
|
|
```
|
|
|
and logout.
|
|
|
|
|
|
or in a more system admin way :
|
|
|
|
|
|
```
|
|
|
sudo systemctl start jupyterhub.service
|
|
|
```
|
|
|
and possibly check the status of the service :
|
|
|
|
|
|
```
|
|
|
sudo systemctl status jupyterhub.service
|
|
|
● jupyterhub.service - Jupyterhub
|
|
|
Loaded: loaded (/usr/lib/systemd/system/jupyterhub.service; disabled; vendor preset: disabled)
|
|
|
Active: active (running) since mar. 2020-12-15 10:19:27 CET; 4min 15s ago
|
|
|
Main PID: 115277 (jupyterhub)
|
|
|
Tasks: 7
|
|
|
Memory: 99.1M
|
|
|
CGroup: /system.slice/jupyterhub.service
|
|
|
├─115277 /home/jupyterhub/anaconda3/bin/python /home/jupyterhub/anaconda3/bin/jupyterhub -f /home/jupyterhub/jupyterhub_config.py
|
|
|
└─115287 node /home/jupyterhub/anaconda3/bin/configurable-http-proxy --ip --port 8500 --api-ip 127.0.0.1 --api-port 8001 --error-target http://127.0....
|
|
|
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: 10:19:31.244 - info: [ConfigProxy] 200 GET /api/routes
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:19:31.244 JupyterHub proxy:301] Checking routes
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:19:31.244 JupyterHub proxy:370] Adding default route for Hub: / => http://127.0.0.1:8081
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: 10:19:31.247 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: 10:19:31.249 - info: [ConfigProxy] 201 POST /api/routes/
|
|
|
déc. 15 10:19:31 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:19:31.249 JupyterHub app:1906] JupyterHub is now running at http://:8500
|
|
|
déc. 15 10:20:10 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:20:10.826 JupyterHub log:158] 302 GET / -> /hub (@::ffff:145.238.200.65) 1.56ms
|
|
|
déc. 15 10:20:11 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:20:11.526 JupyterHub log:158] 302 GET /hub -> /hub/ (@::ffff:145.238.200.65) 0.89ms
|
|
|
déc. 15 10:20:11 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:20:11.746 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::ffff:145.238.200.65) 1.02ms
|
|
|
déc. 15 10:20:12 romeo.obspm.fr jupyterhub[115277]: [I 2020-12-15 10:20:12.529 JupyterHub log:158] 200 GET /hub/login (@::ffff:145.238.200.65) 68.62ms
|
|
|
```
|
|
|
|
|
|
## Having `jupyterhub` active concurrently with `docker` on `romeo`
|
|
|
By default `jupyterhub`'s proxy uses the port 8000 which the port used by `docker`'s. See below a way to have `jupyterhub`'s proxy using a different port ( e.g. 8500 ) :
|
|
|
|
... | ... | |