try geth instead

This commit is contained in:
Sebastian
2023-08-18 06:46:20 +02:00
parent 0edf9c3e5b
commit f710a2904c
4 changed files with 74 additions and 1 deletions

5
linea/geth/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM ethereum/client-go:v1.12.2
COPY ./scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod u+x /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

View File

@@ -0,0 +1,15 @@
#!/bin/sh
# exit script on any error
set -e
GETH_HOME=/root/.ethereum
if [ ! -f "${ERIGON_HOME}/bootstrapped" ];
then
echo "write the custom genesis block"
mkdir -p ${GETH_HOME:-/root/.ethereum}
geth --datadir ${GETH_HOME:-/root/.ethereum} init /configs/mainnet/shared/genesis.json
fi
exec geth $@