10: 2020-08-23 (日) 03:36:56 iseki |
11: 2020-08-23 (日) 14:27:13 iseki |
| ** JupyterHub [#mb71944e] | | ** JupyterHub [#mb71944e] |
| - マルチユーザのための [[Jupyter]] サーバー(ユーザ認証機能つき) | | - マルチユーザのための [[Jupyter]] サーバー(ユーザ認証機能つき) |
| + | - https://jupyterhub.readthedocs.io/en/0.7.2/getting-started.html |
| - https://horomary.hatenablog.com/entry/2019/11/09/181614 | | - https://horomary.hatenablog.com/entry/2019/11/09/181614 |
| - see also: ''[[Jupyter]]'' | | - see also: ''[[Jupyter]]'' |
| + | - see also: [[Docker]], [[Podman]] |
| + | - see also: [[Kubernetes]] |
| #br | | #br |
| | | |
| | | |
| ** 設定 [#idb49705] | | ** 設定 [#idb49705] |
| + | - https://zero-to-jupyterhub.readthedocs.io/en/latest/customizing/index.html |
| + | - https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/index.html |
| + | |
| - jupyterhub --generate-config を実行すると カレントディレクトリに設定ファイル ''jupyterhub_config.py'' が生成される. | | - jupyterhub --generate-config を実行すると カレントディレクトリに設定ファイル ''jupyterhub_config.py'' が生成される. |
| - 個人的には jupyterhub が /usr/local 以下にある場合は /usr/local/etc/jupyterhub 以下に置く. | | - 個人的には jupyterhub が /usr/local 以下にある場合は /usr/local/etc/jupyterhub 以下に置く. |
| - 設定ファイルは拡張子が .py でないと,読み込まれない場合がある? | | - 設定ファイルは拡張子が .py でないと,読み込まれない場合がある? |
| + | |
| #br | | #br |
| + | |
| *** Authenticator Class (authenticator_class) [#g1e9cdae] | | *** Authenticator Class (authenticator_class) [#g1e9cdae] |
| **** auth.DummyAuthenticator [#g40f4bb4] | | **** auth.DummyAuthenticator [#g40f4bb4] |
| ** 実行 [#a826d7f6] | | ** 実行 [#a826d7f6] |
| (base) # conda activate jupyterhub | | (base) # conda activate jupyterhub |
- | (jupyterhub) # jupyterhub --no-ssl -f /usr/local/etc/jupyterhub/jupyterhub_config.py | + | (jupyterhub) # jupyterhub -f /usr/local/etc/jupyterhub/jupyterhub_config.py |
| | | |
- | **** 使用ポート [#me192c34] | + | - --no-ssl は0.7で廃止された |
- | - 8000 | + | |
- | - 8081 | + | |
| #br | | #br |
| | | |
| - docker pull niicloudoperation/notebook | | - docker pull niicloudoperation/notebook |
| #br | | #br |
| + | ** Spawner [#v67998b2] |
| + | |
| + | *** [[Docker]] [#e1984289] |
| + | - ....... |
| + | #br |
| + | |
| + | *** [[Podman]] [#t1db1fc3] |
| + | - ........ |
| + | #br |
| + | |
| + | *** [[Kubernetes]] [#af74888d] |
| + | - https://github.com/jupyterhub/zero-to-jupyterhub-k8s |
| + | - https://zero-to-jupyterhub.readthedocs.io/en/latest/ |
| + | #br |
| + | |
| + | ** DB [#v881917b] |
| + | *** MySQL [#ge9c722d] |
| + | - [[SQLAlchemy]] で PyMySQL ドライバを使用する |
| + | - pool_recycle の設定を忘れずに! |
| + | - charset は urf8mb4 |
| + | #br |
| + | |
| ** Trouble Shooting [#rf83821d] | | ** Trouble Shooting [#rf83821d] |
| | | |