flagflag  
17: 2021-07-24 (Sat) 01:33:56 iseki source 18: 2021-07-24 (Sat) 10:18:43 iseki source
Line 25: Line 25:
#br #br
-**** xxx [#s5b3175e]+**** datascience-notebook  [#s5b3175e]
- docker pull jupyter/datascience-notebook - docker pull jupyter/datascience-notebook
#br #br
Line 113: Line 113:
- /usr/local/anaconda/envs/jupyterhub/lib/​python3.8/site-packages/dockerspawner/ - /usr/local/anaconda/envs/jupyterhub/lib/​python3.8/site-packages/dockerspawner/
--- __init__.py+-- edit __init__.py
-- ex.) nsldockerspawner.py -- ex.) nsldockerspawner.py
 ......  ......
Line 130: Line 130:
#br #br
-**** ProjectDockerSpawner [#d9dde499]+**** MDLDockerSpawner [#d9dde499]
- 参考:  https://gist.github.com/marufeuille/596c​f6f9e26fa6fcb7e304d5b163c7c8 - 参考:  https://gist.github.com/marufeuille/596c​f6f9e26fa6fcb7e304d5b163c7c8
Line 238: Line 238:
#br #br
-**** NSLDockerSpaewner [#rdae5a79]+
#br #br
*** Tools [#ke66d2d2] *** Tools [#ke66d2d2]
**** アイドルしている Docker コンポーネントを殺す! [#uf1854cf] **** アイドルしている Docker コンポーネントを殺す! [#uf1854cf]
 +***** %%jupyterhub​-idle-culler%% [#eb3404d4]
- jupyterhub_idle_culler - jupyterhub_idle_culler
- https://github.com/jupyterhub/jupyterhub​-idle-culler - https://github.com/jupyterhub/jupyterhub​-idle-culler
Line 254: Line 255:
-- python setup.py build -- python setup.py build
-- python setup.py build -- python setup.py build
 +
 +- ''期待通りに動かん!''
- jupyterhub_config.py - jupyterhub_config.py
- + lmport sys
- mport sys+
 c.JupyterHub.services = [  c.JupyterHub.services = [
Line 266: Line 268:
           sys.executable,            sys.executable,
           '-m', 'jupyterhub_idle_culler',            '-m', 'jupyterhub_idle_culler',
 +           '--timeout=3600'
 +       ],
 +   }
 + ]
 +
 +***** cull_idle_servers.py [#zc9428f7]
 +- jupyterhub​-idle-culler は期待通りに動かない.cull_idle_servers.py の方が良いみたい.
 +- https://github.com/jupyterhub/jupyterhub​/tree/a6b7e303df03865d6420f6bccdf627b39f​1d0dc1/examples/cull-idle
 +
 +- 実行状態(run)も確実に殺してくれる(stop でなくて, rm).
 +
 +
 +- jupyterhub_config.py
 + lmport sys
 +
 + c.JupyterHub.services = [
 +   {
 +       'name': 'idle-culler',
 +       'admin': True,
 +       'command': [
 +           sys.executable,
 +           '/usr/local/bin/cull_idle_servers.py',
           '--timeout=3600'            '--timeout=3600'
       ],        ],
Line 272: Line 296:
#br #br
-*** Trouble Shooting [#j137c8ff]+** Trouble Shooting [#j137c8ff]
**** 何故かイメージを変更して commit すると引数が2重になる? (''非常に重要な問題'')[#xeab91b6] **** 何故かイメージを変更して commit すると引数が2重になる? (''非常に重要な問題'')[#xeab91b6]


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

21 user(s) are online (1 user(s) are browsing xpwiki)

Members: 0
Guests: 21

more...

Access Counter

Today : 4061406140614061
Yesterday : 8599859985998599
Total : 2365106723651067236510672365106723651067236510672365106723651067
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com