6: 2021-07-14 (水) 16:24:11 iseki |
7: 2021-07-25 (日) 21:37:01 iseki |
| - コンテナ内:/usr/local/bin/start.sh | | - コンテナ内:/usr/local/bin/start.sh |
| -- こいつの書き換えは必須! | | -- こいつの書き換えは必須! |
| + | #br |
| + | ** Moodle & JupyterHub 連携 [#t72c88ce] |
| + | |
| + | *** INSTALL [#qb9768b3] |
| + | **** [[Anaconda]] [#jb987bc7] |
| + | #br |
| + | |
| + | **** [[JupyterHub]]/[[DockerSpawner>JupyterHub/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/dockerspawner.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) # docker pull jupyterhub/singleuser |
| + | (base) # docker pull jupyter/datascience-notebook |
| + | #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] |
| + | #br |
| + | **** DMLDockerSpawner [#s98f7379] |
| + | - https://gitlab.nsl.tuis.ac.jp |
| #br | | #br |