flagflag  If you want to see English page, please click "English" Button at Left.
9: 2021-08-01 (日) 14:32:50 iseki ソース 現: 2021-08-30 (月) 00:44:38 iseki ソース
Line 58: Line 58:
-- こいつの書き換えは必須! -- こいつの書き換えは必須!
#br #br
-** Moodle & JupyterHub 連携 [#t72c88ce] +*** [[Moodle+JupyterHub]] に統合 [#l139818b]
- +
-*** INSTALL [#qb9768b3] +
-**** [[Anaconda]] [#jb987bc7] +
-#br +
- +
-**** [[JupyterHub]]/[[DockerSpawner>JupyterHu​b/DockerSpawner]] [#z52a6900] +
- (base) # conda create -n jupyterhub python=3.8 -y +
- (base) # conda activate jupyterhub +
- (jupyterhub) # conda install -c conda-forge notebook -y +
- (jupyterhub) # conda install -c conda-forge jupyterlab -y +
- (jupyterhub) # conda install -c conda-forge jupyterhub==1.4.2  -y +
- (jupyterhub) # conda install -c conda-forge voila -y +
- (jupyterhub) # conda install jupyter_client -y +
- (jupyterhub) # pip --no-cache-dir install git+https://github.com/jupyterhub/dockerspaw​ner.git +
-#br +
- +
-**** [[Docker]] ([[CentOS8]]) [#o38fddf3] +
- (base) # dnf config-manager --add-repo https://download.docker.com/linux/centos​/docker-ce.repo +
- (base) # dnf -y install docker-ce docker-ce-cli containerd.io --nobest --allowerasing +
- (base) # systemctrl enable docker.socket +
- (base) # systemctrl start docker.socket +
- (base) # docker pull jupyterhub/singleuser +
- (base) # docker pull jupyter/datascience-notebook +
-#br +
-**** Moodleがリモートホストで動いている場合,Moodleが動いているホストからDockerコマンドが入力できるようにする. [#xe993c8f] +
- +
-***** SSH ポートフォワードを使用する. [#h0ef173d] +
-- Moodleが localhost, Docker が 202.26.150.55で動いている場合 +
- # ssh -fNL localhost:9099:/var/run/docker.sock root@202.26.150.55   (rootログインがセキュリティ的に弱い) +
- # export DOCKER_HOST=localhost:9099 +
- # docker volume ls +
-- Docker の実効ユーザを root 以外にしておく. +
-- Moodleの動いているホストでは,Dockerデーモンは不要.クライアントのみで可. +
-#br +
- +
-**** docker の通信機能を使用する [#g41b437e] +
-- docker -H ssh://202.26.150.55 volume ls +
-#br +
- +
-**** [[altfiles>NSS]] [#n90bdca5] +
- # git clone https://github.com/aperezdc/nss-altfiles​.git +
- # cd nss-altfiles/ +
- # ./configure --prefix=/usr --datadir=/usr/local/etc --with-type=pwd,grp +
- # make +
- # make install +
- # ln -s /usr/lib/libnss_altfiles.so.2 /usr/lib64/libnss_altfiles.so +
- # ldconfig +
- +
- # cd /usr/local/etc +
- # wget https://el.mml.tuis.ac.jp/system/passwd ​+
- # wget https://el.mml.tuis.ac.jp/system/group          (group は 必要な物だけ /etc/group を編集しても良い) +
- +
-- /etc/nsswitch.conf +
- passwd: files altfiles +
- group:  files altfiles +
-- ユーザアカウントの整合性を取る. +
-#br +
- +
-**** [[LTI>JupyterHub#m4467ad6]] [#g284e3bf] +
-- pip install jupyterhub-ltiauthenticator +
-- cd ......./ltiauthenticator +
-- patch -p1 < ~/mdldockerspawner/ltiauthenticator-1.0.​0.path +
-#br +
- +
-**** [[MDLDockerSpawner>JupyterHub/MDLDockerS​pawner]] [#s98f7379] +
-- https://gitlab.nsl.tuis.ac.jp +
-#br +
-***** dddd [#ac1e309d] +
-#br +
- +
-**** cull_idle_servers.py [#n8a3f52c] +
-- [[cull_idle_servers.py>JupyterHub/Docker​Spawner#zc9428f7]] +
-- https://github.com/jupyterhub/jupyterhub​/tree/a6b7e303df03865d6420f6bccdf627b39f​1d0dc1/examples/cull-idle +
-- DLして /usr/local/bin にコピー +
-#br +
- +
-**** JupyterHub [#h8d86a77] +
-- mkdir -p /var/lib/jupyterhub/ +
-- FireWall +
--- firewall-cmd --add-port 8000-8001/tcp --permanent  // 8001は要らないかもしれない +
--- firewall-cmd --add-port 9000-9001/tcp --permanent  // feserver 用 +
--- firewall-cmd --reload +
- +
-- vi jupyterhub_config.py +
--- IPアドレス,サーバ証明書 +
-#br +
- +
-*** 起動 [#hccd8a59] +
-- jupyterhub -f jupyterhub_config.py+
#br #br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

60 人のユーザが現在オンラインです。 (25 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 60

もっと...

アクセスカウンタ

今日 : 418418418
昨日 : 8048804880488048
総計 : 2366997923669979236699792366997923669979236699792366997923669979
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com