mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-20 18:56:30 +00:00
The dev node was pinned to pezkuwi/bizinikiwi@sha256:130e8ddd… (2026-03-21). pezkuwi-DKS now builds and publishes the image publicly on GHCR; pin its current digest, sha256:2dfafa4d…. Checked: anonymous pull answers 200, :latest resolves to this digest, and the image started with the script's arguments answers system_chain "Development" and produces blocks.
26 lines
986 B
Bash
Executable File
26 lines
986 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Starts a bizinikiwi dev node for the .slow. specs, with its RPC on the port
|
|
# the specs connect to (test-support BIZINIKIWI_PORT, 30333), and waits until
|
|
# it answers. Fails if it never does, so a spec run cannot start without it.
|
|
set -euo pipefail
|
|
|
|
# pinned by digest: a tag can move under a run. Built from pezkuwi-DKS main and published
|
|
# publicly on GHCR (pulls anonymously).
|
|
IMAGE=ghcr.io/pezkuwichain/bizinikiwi@sha256:2dfafa4db7766ce35fbcf20fcd281698a2981eeb87ec9c68a578b3e57f93bedb
|
|
PORT=${TEST_BIZINIKIWI_PORT:-30333}
|
|
|
|
docker run -d --name dev-node -p "$PORT:9944" "$IMAGE" --dev --rpc-external --rpc-cors all
|
|
|
|
for _ in $(seq 1 60); do
|
|
if curl -sf -H 'Content-Type: application/json' \
|
|
-d '{"id":1,"jsonrpc":"2.0","method":"system_chain"}' "http://127.0.0.1:$PORT" > /dev/null; then
|
|
echo "dev node answers on $PORT"
|
|
exit 0
|
|
fi
|
|
sleep 2
|
|
done
|
|
|
|
echo "dev node did not answer on $PORT within 120s"
|
|
docker logs dev-node 2>&1 | tail -40
|
|
exit 1
|