HH-635: avoid runtime GeoIP download
Docker image / Test (pull_request) Successful in 41s
Docker image / Build and publish (pull_request) Successful in 4m5s

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-08-24 23:19:41 +08:00
co-authored by multica-agent
parent d61799d180
commit fb1d72e69d
4 changed files with 13 additions and 8 deletions
+7 -5
View File
@@ -93,11 +93,13 @@ if [ "$public_bindings" -ne 2 ] || [ "$loopback_bindings" -ne 1 ]; then
fi
docker build --tag "$image" .
docker run --rm --entrypoint /usr/local/lib/ssclash/clash "$image" \
-t -d /usr/local/share/ssclash -f /usr/local/share/ssclash/config.yaml >/dev/null 2>&1 && {
echo "config validation unexpectedly passed without a subscription provider" >&2
exit 1
}
docker run --rm --network none --entrypoint /bin/sh "$image" -c '
set -eu
runtime=$(mktemp -d)
cp /usr/local/share/ssclash/config.yaml "$runtime/config.yaml"
printf "proxies:\n - name: smoke-node\n type: socks5\n server: 127.0.0.1\n port: 9\n" > "$runtime/subscription.yaml"
/usr/local/lib/ssclash/clash -t -d "$runtime" -f "$runtime/config.yaml"
' >/dev/null
provider_dir=$(mktemp -d)
printf '%s\n' \