Files
ethereum-rpc-docker/goat/testnet3/node-entrypoint.sh
Para Dox 2e2842bd83 fix
2025-04-15 14:59:22 +07:00

18 lines
686 B
Bash
Executable File

#!/bin/sh
# Custom initialization steps go here
echo "Starting initialization steps..."
# Check if the genesis.json file exists; if not, initialize and copy it
if [ ! -f /goat/config/genesis.json ]; then
echo "Initializing goatd..."
goatd init --home /goat testnet
echo "Copying genesis file..."
cp /genesis/goat.json /goat/config/genesis.json
else
echo "Genesis file already exists; skipping initialization."
fi
# Pass control to the final command specified in docker-compose.yml
goatd start --home /goat --chain-id=goat-testnet3 --goat.geth /geth/geth.ipc --api.enable --api.address=tcp://0.0.0.0:1317 --p2p.external-address $IP:40258 --p2p.laddr 0.0.0.0:40258