generate the nodekey

This commit is contained in:
Sebastian
2025-02-02 07:58:57 +01:00
parent f20bc90b24
commit 42466c6e91

View File

@@ -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"