Spy configuration (#21)

* Configuration to connect spy to wormhole local validator

* fix spy_guardiand.bash hostname

* save
This commit is contained in:
Joe Howarth 2022-10-13 12:00:30 -05:00 committed by GitHub
parent 3bf6e1d38b
commit ec13c1d180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -10,7 +10,7 @@ DOCKER_FLAGS=
HOST=
TERRAD_HOST=
if [ "$(uname -m)" = "arm64" ]; then
DOCKER_FLAGS="-p 7070:7070 -p 7071:7071 -p 7073:7073 --platform linux/amd64"
DOCKER_FLAGS="-p 7070:7070 -p 7071:7071 -p 6060:6060 -p 8999:8999/udp --platform linux/amd64"
HOST="host.docker.internal"
TERRAD_HOST="host.docker.internal"
else

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Run Guardiand
set -euo pipefail
HOST=
if [ "$(uname -m)" = "arm64" ]; then
HOST="host.docker.internal"
else
HOST="localhost"
fi
docker run \
--platform=linux/amd64 \
-p 7073:7073 \
--entrypoint /guardiand \
ghcr.io/wormhole-foundation/guardiand:latest \
spy --nodeKey /node.key --spyRPC "[::]:7073" --bootstrap /dns4/${HOST}/udp/8999/quic/p2p/12D3KooWL3XJ9EMCyZvmmGXL2LMiVBtrVa2BuESsJiXkSj7333Jw