Skip to content

Commit c2ac2a1

Browse files
author
haobibo
committed
update devbox
1 parent c1d12e1 commit c2ac2a1

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

docker_devbox/hub.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ RUN set -eux \
2626
else \
2727
echo "Keep NodeJS as ARG_KEEP_NODEJS defiend as: ${ARG_KEEP_NODEJS}" ; \
2828
fi \
29+
# network-tools https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/main/images/network-tools/Dockerfile
30+
&& apt-get update && apt-get install -y --no-install-recommends iptables \
2931
# Clean up and display components version information...
3032
&& source /opt/utils/script-utils.sh && install__clean && list_installed_packages
3133

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
% This file contains python packages to be installed with pip line by line.
22
% Use percent char as line comment separator.
33

4+
nbgitpuller % https://github.com/jupyterhub/nbgitpuller
45
ipyparallel % https://github.com/ipython/ipyparallel
56
% jupyterlab_myst % https://github.com/executablebooks/jupyterlab-myst - BUG: https://github.com/jupyter-book/jupyterlab-myst/issues/243
67
jupytext % https://github.com/mwouts/jupytext
7-
ipynb % https://github.com/ipython/ipynb
88
jupyterlab_server[openapi] % https://github.com/jupyterlab/jupyterlab_server
99
jupyter-resource-usage % https://github.com/jupyter-server/jupyter-resource-usage
10-
jupyterlab_rise % https://github.com/jupyterlab-contrib/rise
1110
jupyterlab-git % https://github.com/jupyterlab/jupyterlab-git
12-
jupyterlab-language-pack-zh-CN % language pack: https://github.com/jupyterlab/language-packs/tree/main/language-packs/jupyterlab-language-pack-zh-CN
11+
jupyterlab-language-pack-zh-CN % lang pack: https://github.com/jupyterlab/language-packs/tree/main/language-packs/jupyterlab-language-pack-zh-CN
12+
jupyterlab-latex % https://github.com/jupyterlab/jupyterlab-latex
1313
% jupyter-collaboration % https://github.com/jupyterlab/jupyter-collaboration
14-
% jupyterlab-latex % bug on pypi version: https://github.com/jupyterlab/jupyterlab-latex
14+
% jupyterlab_rise % https://github.com/jupyterlab-contrib/rise
15+
% ipynb % https://github.com/ipython/ipynb

docker_devbox/work/script-devbox-jupyter.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,18 @@ setup_jupyter_extensions() {
102102
setup_jupyter_hub() {
103103
# ref1: https://github.com/jupyterhub/jupyterhub
104104
# ref2: https://github.com/jupyterhub/jupyterhub/blob/main/Dockerfile
105-
which npm && ( npm install -g npm configurable-http-proxy ) || ( echo "NPM not found!" && return 255 )
106-
107-
pip install -Uq --pre jupyterhub \
108-
&& pip install -Uq oauthenticator jupyterhub-ldapauthenticator jupyterhub-kerberosauthenticator \
109-
&& pip install -Uq dockerspawner jupyterhub-kubespawner jupyterhub-systemdspawner wrapspawner \
110-
&& pip install -Uq psutil pycurl jupyter_client jupyterhub \
111-
&& pip install -Uq jupyterhub-traefik-proxy configurable-http-proxy
105+
# ref3: https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/main/images/hub/unfrozen/requirements.txt
106+
which npm && ( npm install -g npm configurable-http-proxy ) || ( echo "NPM not found!" && return 255 )
107+
108+
pip install -Uq --pre jupyterhub jupyter_client \
109+
dockerspawner jupyterhub-kubespawner jupyterhub-systemdspawner wrapspawner \
110+
jupyterhub-ldapauthenticator jupyterhub-kerberosauthenticator \
111+
jupyterhub-firstuseauthenticator jupyterhub-hmacauthenticator jupyterhub-ltiauthenticator \
112+
jupyterhub-nativeauthenticator jupyterhub-tmpauthenticator \
113+
oauthenticator[googlegroups,mediawiki] jupyterhub-idle-culler \
114+
psycopg pymysql sqlalchemy-cockroachdb \
115+
psutil pycurl py-spy \
116+
jupyterhub-traefik-proxy configurable-http-proxy
112117

113118
type jupyterhub && echo "@ JupyterHub version: $(jupyterhub --version)" || return -1 ;
114119
}

0 commit comments

Comments
 (0)