generate the nodekey
This commit is contained in:
@@ -1,9 +1,29 @@
|
|||||||
version: '3.1'
|
version: '3.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
erigon-linea-init:
|
||||||
|
image: alpine:latest
|
||||||
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
|
command:
|
||||||
|
- |
|
||||||
|
apk add --no-cache openssl xxd;
|
||||||
|
mkdir -p /config;
|
||||||
|
if [ ! -f /config/nodekey ]; then
|
||||||
|
echo "Generating new Geth node key...";
|
||||||
|
openssl rand 32 | xxd -p -c 32 | tr -d '\n' > /configs/mainnet/shared/nodekey;
|
||||||
|
echo "Node key generated: $(cat /config/nodekey)";
|
||||||
|
else
|
||||||
|
echo "Node key already exists, skipping generation.";
|
||||||
|
fi
|
||||||
|
volumes:
|
||||||
|
- ./linea/shared:/configs/mainnet/shared
|
||||||
|
init: true
|
||||||
|
|
||||||
erigon-linea:
|
erigon-linea:
|
||||||
image: erigontech/erigon:${ERIGON2_VERSION:-v2.61.0}
|
image: erigontech/erigon:${ERIGON2_VERSION:-v2.61.0}
|
||||||
user: root
|
user: root
|
||||||
|
depends_on:
|
||||||
|
- erigon-linea-init
|
||||||
expose:
|
expose:
|
||||||
- "51262"
|
- "51262"
|
||||||
- "9090"
|
- "9090"
|
||||||
|
|||||||
Reference in New Issue
Block a user