File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ sleep 60s
3434
3535# Now kill the registry and start in "full mode" (with the mirrored database)
3636kill -9 $PID_REGISTRY || true
37- ./dub-registry &
37+ ./dub-registry --no-monitoring &
3838PID_REGISTRY=$!
3939sleep 10s
4040
@@ -56,6 +56,22 @@ kill -9 $PID_WGET || true
5656
5757mv " 127.0.0.1:8005" out
5858
59+ # ###############################################################################
60+ # Download all JSON responses from the local registry
61+ # ###############################################################################
62+
63+ mapfile -t packages < <( jq -r ' .[] | .name' mirror.json)
64+ OUT=out/packages
65+ mkdir -p " $OUT "
66+ for package in " ${packages[@]} " ; do
67+ echo " Downloading JSON for ${package} "
68+ curl -fsSL " http://localhost:8005/packages/${package} .json" > " ${OUT} /${package} .json" || true
69+ done
70+
71+ # ###############################################################################
72+ # Kill the running registry + mongod instance
73+ # ###############################################################################
74+
5975kill -9 $PID_MONGO || true
6076kill -9 $PID_REGISTRY || true
6177kill -9 $PID_MONGO || true
You can’t perform that action at this time.
0 commit comments