Files
scroll/common/docker/l1geth/l1geth_run.sh

17 lines
546 B
Bash
Executable File

#!/bin/sh
if [ ! -f ./keystore ]; then
echo "initializing l1geth"
cp /l1geth/genesis.json /l1geth/password ./
geth --datadir . init genesis.json
cp /l1geth/genesis-keystore ./keystore/
fi
if [ ! -n "${IPC_PATH}" ];then
IPC_PATH="/tmp/l1geth_path.ipc"
fi
exec geth --mine --datadir "." --unlock 0 --miner.etherbase "0x1c5a77d9fa7ef466951b2f01f724bca3a5820b63" --password "./password" --allow-insecure-unlock --nodiscover \
--http --http.addr "0.0.0.0" --http.port 8545 --ws --ws.addr "0.0.0.0" --ws.port 8546 --ipcpath ${IPC_PATH}