flagflag  
1: 2020-08-21 (Fri) 01:13:58 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]
- # git clone https://github.com/jupyterhub/dockerspaw​ner.git +- 8000, 8001, 8081番のポート(TCP)を開ける. 
- # cd dockerspawner/examples/swarm/ +- さらに swarmのテストを行う場合は,swarm のコントロール用の 2377/tcp, 7946/tcp, 7946/udp, 4789/udp を開ける 
- # docker swarm init +- jupyterhub 1.1.0 はPAM認証でバグがある.see Trouble Shooting of [[JupyterHub]] 
- # docker-compose build +-- 今回の Jupyterhub はコンテナ中で起動.Dockerfile でバージョンを指定. 
- # docker-compose up+- CentOS8 では Dockerfile の pip でエラーがでる.see Trouble Shooting of [[Docker]] 
 +-- squid を動かす場合は 3128番のポート(TCP)を開ける 
 +- jupyterhub_config.py を変更 
 +-- c.Spawner.cmd = ["jupyter", "labhub"] のコマンドを ''"jupyterhub-singleuser"'' に変更 
 +-- c.Spawner.default_url = '/lab' を追加 
 + 
 + (base) # source activate jupyterhub 
 + (jupyterhub) # git clone https://github.com/jupyterhub/dockerspaw​ner.git 
 + (jupyterhub) # cd dockerspawner/examples/swarm/ 
 + (jupyterhub) # vi Dockerfile 
 + (jupyterhub) # vi jupyter_config.py 
 + (jupyterhub) # docker swarm init 
 + (jupyterhub) # docker-compose build 
 + (jupyterhub) # docker-compose up 
 + ....... 
 + ^C 
 + (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

70 user(s) are online (22 user(s) are browsing xpwiki)

Members: 0
Guests: 70

more...

Access Counter

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