Skip to content

Commit 44373e6

Browse files
authored
Update clash UI (#41)
* Update script-setup-clash.sh - prepare for zashboard * update ui build
1 parent a5ab3fc commit 44373e6

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docker_app_clash/clash.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ARG BASE_IMG="atom"
66

77

88
# Stage 1: build code, both backend and frontend
9-
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} as builder
9+
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} AS builder
1010

1111
COPY work/clash /opt/utils/
1212

1313
RUN set -eux && source /opt/utils/script-setup-clash.sh \
14-
&& setup_clash && setup_clash_metacubexd && setup_clash_verge \
14+
&& setup_clash && setup_clash_metacubexd && setup_clash_zashboard \
1515
&& mv /opt/utils/config.yaml /opt/clash/config \
1616
&& mv /opt/utils/start-clash.sh /opt/clash/
1717

docker_app_clash/work/clash/script-setup-clash.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ setup_clash_metacubexd() {
3434
&& mv /tmp/xd/dist /opt/clash/ui-xd
3535
}
3636

37-
setup_clash_verge() {
38-
# Install the latest release: https://clash-verge-rev.github.io/index.html
39-
VER_VERGE=$(curl -sL https://github.com/clash-verge-rev/clash-verge-rev/releases.atom | grep 'releases/tag/v' | head -1 | grep -Po '\d[\d.]+' ) \
40-
&& URL_VERGE="https://github.com/clash-verge-rev/clash-verge-rev/archive/refs/tags/v$VER_VERGE.tar.gz" \
41-
&& echo "Downloading clash-verge version ${VER_VERGE} from: ${URL_VERGE}" \
42-
&& install_tar_gz $URL_VERGE \
43-
&& mv /opt/clash-verge-* /tmp/verge && cd /tmp/verge \
37+
setup_clash_zashboard() {
38+
# Install the latest release: https://github.com/Zephyruso/zashboard
39+
VER_ZASHBOARD=$(curl -sL https://github.com/Zephyruso/zashboard/releases.atom | grep 'releases/tag/v' | head -1 | grep -Po '\d[\d.]+' ) \
40+
&& URL_ZASHBOARD="https://github.com/Zephyruso/zashboard/archive/refs/tags/v$VER_ZASHBOARD.tar.gz" \
41+
&& echo "Downloading zashboard version ${VER_ZASHBOARD} from: ${URL_ZASHBOARD}" \
42+
&& install_tar_gz $URL_ZASHBOARD \
43+
&& mv /opt/zashboard-* /tmp/zashboard && cd /tmp/zashboard \
4444
&& jq '.homepage = "./ui"' package.json > tmp.$$.json && mv tmp.$$.json package.json \
45-
&& npx pnpm i && npx pnpm run web:build && ls -alh \
46-
&& mv /tmp/verge/dist /opt/clash/ui-verge
45+
&& npx pnpm i && npx pnpm run build && ls -alh \
46+
&& mv /tmp/zashboard/dist /opt/clash/ui-zashboard
4747
}

docker_devbox/work/script-devbox-jupyter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ setup_jupyter_hub() {
108108
&& pip install -Uq oauthenticator jupyterhub-ldapauthenticator jupyterhub-kerberosauthenticator \
109109
&& pip install -Uq dockerspawner jupyterhub-kubespawner jupyterhub-systemdspawner wrapspawner \
110110
&& pip install -Uq psutil pycurl jupyter_client jupyterhub \
111-
&& pip install -Uq jupyterhub-traefik-proxy
111+
&& pip install -Uq jupyterhub-traefik-proxy configurable-http-proxy
112112

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

0 commit comments

Comments
 (0)