Spy configuration (#21)
* Configuration to connect spy to wormhole local validator * fix spy_guardiand.bash hostname * save
This commit is contained in:
parent
3bf6e1d38b
commit
ec13c1d180
|
@ -10,7 +10,7 @@ DOCKER_FLAGS=
|
||||||
HOST=
|
HOST=
|
||||||
TERRAD_HOST=
|
TERRAD_HOST=
|
||||||
if [ "$(uname -m)" = "arm64" ]; then
|
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"
|
HOST="host.docker.internal"
|
||||||
TERRAD_HOST="host.docker.internal"
|
TERRAD_HOST="host.docker.internal"
|
||||||
else
|
else
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue