updated guardiand to be more robust amongst other machine types
This commit is contained in:
parent
f02595b488
commit
57f824e249
|
@ -1,3 +1,4 @@
|
||||||
test-ledger/
|
test-ledger/
|
||||||
wormhole/
|
wormhole/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.aptos/
|
|
@ -6,19 +6,10 @@ set -euo pipefail
|
||||||
# dev.v2 for now (until we make a release)
|
# dev.v2 for now (until we make a release)
|
||||||
DOCKER_IMAGE="ghcr.io/certusone/guardiand:dev.v2"
|
DOCKER_IMAGE="ghcr.io/certusone/guardiand:dev.v2"
|
||||||
|
|
||||||
DOCKER_FLAGS=
|
DOCKER_FLAGS="-p 7070:7070 -p 7071:7071 -p 6060:6060 -p 8999:8999/udp --add-host=host.docker.internal:host-gateway --platform linux/amd64"
|
||||||
HOST=
|
HOST="host.docker.internal"
|
||||||
TERRAD_HOST=
|
TERRAD_HOST="host.docker.internal"
|
||||||
machine=$(uname -m)
|
|
||||||
if [ $machine = "arm64" ] || [ $machine = "x86_64" ]; then
|
|
||||||
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
|
|
||||||
DOCKER_FLAGS="--network host"
|
|
||||||
TERRAD_HOST="terra-terrad"
|
|
||||||
HOST="localhost"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker run --rm --name guardiand $DOCKER_FLAGS --hostname guardian-0 --cap-add=IPC_LOCK "$DOCKER_IMAGE" node \
|
docker run --rm --name guardiand $DOCKER_FLAGS --hostname guardian-0 --cap-add=IPC_LOCK "$DOCKER_IMAGE" node \
|
||||||
--unsafeDevMode --guardianKey /bridge.key --publicRPC "[::]:7070" --publicWeb "[::]:7071" --adminSocket /admin.sock --dataDir /data \
|
--unsafeDevMode --guardianKey /bridge.key --publicRPC "[::]:7070" --publicWeb "[::]:7071" --adminSocket /admin.sock --dataDir /data \
|
||||||
|
|
Loading…
Reference in New Issue