flagflag  
2: 2020-08-21 (Fri) 03:22:03 iseki source Cur: 2020-08-23 (Sun) 03:10:43 iseki source
Line 1: Line 1:
** dockerspawner.SwarmSpawner [#l1dc8615] ** dockerspawner.SwarmSpawner [#l1dc8615]
 +- https://github.com/jupyterhub/dockerspaw​ner.git
 +- JupyterHub 用 Server Class
 +- [[dockerspawner.DockerSpawner>../DockerS​pawner]] からの派生クラス
 +- [[DockerSpawner>../DockerSpawner]] と同じパッケージ
 +- クラスタリング用.
 +- コンテナを Docker-Compose で管理し,複数のサーバー上で実行できる.
 +#br
 +
*** Example [#iea90492] *** Example [#iea90492]
 +- 8000, 8001, 8081番のポート(TCP)を開ける.
 +- さらに swarmのテストを行う場合は,swarm のコントロール用の 2377/tcp, 7946/tcp, 7946/udp, 4789/udp を開ける
- jupyterhub 1.1.0 はPAM認証でバグがある.see Trouble Shooting of [[JupyterHub]] - jupyterhub 1.1.0 はPAM認証でバグがある.see Trouble Shooting of [[JupyterHub]]
-- 今回の Jupyterhub はコンテナ中で起動.Dockerfile でバージョンを指定. -- 今回の Jupyterhub はコンテナ中で起動.Dockerfile でバージョンを指定.
- CentOS8 では Dockerfile の pip でエラーがでる.see Trouble Shooting of [[Docker]] - CentOS8 では Dockerfile の pip でエラーがでる.see Trouble Shooting of [[Docker]]
 +-- squid を動かす場合は 3128番のポート(TCP)を開ける
- jupyterhub_config.py を変更 - jupyterhub_config.py を変更
-- c.Spawner.cmd = ["jupyter", "labhub"] のコマンドを ''"jupyterhub-singleuser"'' に変更 -- c.Spawner.cmd = ["jupyter", "labhub"] のコマンドを ''"jupyterhub-singleuser"'' に変更
Line 11: Line 22:
 (jupyterhub) # git clone https://github.com/jupyterhub/dockerspaw​ner.git  (jupyterhub) # git clone https://github.com/jupyterhub/dockerspaw​ner.git
 (jupyterhub) # cd dockerspawner/examples/swarm/  (jupyterhub) # cd dockerspawner/examples/swarm/
 + (jupyterhub) # vi Dockerfile
 + (jupyterhub) # vi jupyter_config.py
 (jupyterhub) # docker swarm init  (jupyterhub) # docker swarm init
 (jupyterhub) # docker-compose build  (jupyterhub) # docker-compose build
Line 17: Line 30:
 ^C  ^C
 (jupyterhub) # docker-compose down  (jupyterhub) # docker-compose down
 + (jupyterhub) # docker swarm leave --force
 +#br
 +
 +**** 設定ファイル(サンプル) [#maa50835]
 +- [[Dcokerfile>./Dokerfile]]
 +- [[docker-compose.yml>./docker-compose.ym​l]]
 +- [[jupyterhub_config.py>./jupyterhub_conf​ig.py]]
#br #br


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

93 user(s) are online (41 user(s) are browsing xpwiki)

Members: 0
Guests: 93

more...

Access Counter

Today : 1102111021110211102111021
Yesterday : 1306913069130691306913069
Total : 2363581723635817236358172363581723635817236358172363581723635817
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com