Skip to content

Commit

Permalink
Move extras into entrypoint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Oct 22, 2022
1 parent ef3d56a commit 654812b
Show file tree
Hide file tree
Showing 38 changed files with 52 additions and 56 deletions.
2 changes: 1 addition & 1 deletion akula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
environment:
- JWT_SECRET=${JWT_SECRET}
- LOG_LEVEL=${LOG_LEVEL}
- EL_EXTRAS=${EL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/tcp
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/udp
Expand Down Expand Up @@ -55,7 +56,6 @@ services:
- ${NETWORK:-mainnet}
# For now only Archive node works, as we need the eth_getLogs back to deposit contract deployment
# - --prune
command: ${EL_EXTRAS}
volumes:
akula-el-data:
jwtsecret:
4 changes: 2 additions & 2 deletions akula/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ case ${LOG_LEVEL} in
esac
fi

#exec "$@" ${__prune} ${__verbosity}
exec "$@"
#exec "$@" ${__prune} ${__verbosity} ${EL_EXTRAS}
exec "$@" ${EL_EXTRAS}
2 changes: 1 addition & 1 deletion besu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
environment:
- JAVA_OPTS=${BESU_HEAP:--XX:SoftMaxHeapSize=3g -Xmx5g}
- JWT_SECRET=${JWT_SECRET}
- EL_EXTRAS=${EL_EXTRAS:-}
volumes:
- besu-eth1-data:/var/lib/besu
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -75,7 +76,6 @@ services:
- --data-storage-format=BONSAI
# - --sync-mode=X_CHECKPOINT
- --sync-mode=X_SNAP
command: ${EL_EXTRAS}
volumes:
besu-eth1-data:
jwtsecret:
2 changes: 1 addition & 1 deletion besu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if [[ -O "/var/lib/besu/ee-secret/jwtsecret" ]]; then
chmod 666 /var/lib/besu/ee-secret/jwtsecret
fi

exec "$@"
exec "$@" ${EL_EXTRAS}
2 changes: 1 addition & 1 deletion erigon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
environment:
- JWT_SECRET=${JWT_SECRET}
- LOG_LEVEL=${LOG_LEVEL}
- EL_EXTRAS=${EL_EXTRAS:-}
volumes:
- erigon-el-data:/var/lib/erigon
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -83,7 +84,6 @@ services:
# Memory use reduction. Not needed with 32G and does not help with 16G
#- --batchSize
#- 64m
command: ${EL_EXTRAS}
volumes:
erigon-el-data:
jwtsecret:
2 changes: 1 addition & 1 deletion erigon/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ case ${LOG_LEVEL} in
;;
esac

exec "$@" ${__prune} ${__verbosity}
exec "$@" ${__prune} ${__verbosity} ${EL_EXTRAS}
4 changes: 2 additions & 2 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ envmigrate() {
migrate_compose_file() {
# When this gets called $var is COMPOSE_FILE and $value is what is set in .env for it
# Some files have been renamed and others removed altogether
FROM_YML=( ec-shared.yml ec-traefik.yml cc-shared.yml grafana-insecure.yml prysm-web-insecure.yml lh-base-notz.yml lh-validator-notz.yml lh-slasher.yml teku-base-notz.yml teku-validator-notz.yml lh-consensus.yml lh-validator.yml lodestar-consensus.yml lodestar-validator.yml nimbus-consensus.yml prysm-consensus.yml prysm-consensus-rest.yml prysm-validator.yml teku-consensus.yml teku-validator.yml lh-base.yml lh-vc-only.yml lh-cl-only.yml nm.yml lighthouse-base.yml teku-base.yml nimbus-base.yml prysm-base.yml lodestar-base.yml prysm-web.yml blank-grafana.yml lh-grafana.yml lhcc-grafana.yml nimbus-grafana.yml prysm-grafana.yml teku-grafana.yml geth-grafana.yml erigon-grafana.yml oe.yml teku-stats.yml lh-stats.yml lh-stats-consensus.yml lh-stats-validator.yml traefik-shared.yml )
TO_YML=( el-shared.yml el-traefik.yml cl-shared.yml grafana-shared.yml prysm-web-shared.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-slasher.yml teku-base.yml teku-vc-only.yml lighthouse-cl-only.yml lighthouse-vc-only.yml lodestar-cl-only.yml lodestar-vc-only.yml nimbus-cl-only.yml prysm-cl-only.yml prysm-cl-only.yml prysm-vc-only.yml teku-cl-only.yml teku-vc-only.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-cl-only.yml nethermind.yml lighthouse.yml teku.yml nimbus.yml prysm.yml lodestar.yml "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" )
FROM_YML=( ec-shared.yml ec-traefik.yml cc-shared.yml grafana-insecure.yml prysm-web-insecure.yml lh-base-notz.yml lh-validator-notz.yml lh-slasher.yml teku-base-notz.yml teku-validator-notz.yml lh-consensus.yml lh-validator.yml lodestar-consensus.yml lodestar-validator.yml nimbus-consensus.yml prysm-consensus.yml prysm-consensus-rest.yml prysm-validator.yml teku-consensus.yml teku-validator.yml lh-base.yml lh-vc-only.yml lh-cl-only.yml nm.yml lighthouse-base.yml teku-base.yml nimbus-base.yml prysm-base.yml lodestar-base.yml prysm-web.yml blank-grafana.yml lh-grafana.yml lhcc-grafana.yml nimbus-grafana.yml prysm-grafana.yml teku-grafana.yml geth-grafana.yml erigon-grafana.yml oe.yml teku-stats.yml lh-stats.yml lh-stats-consensus.yml lh-stats-validator.yml traefik-shared.yml lighthouse-slasher.yml prysm-slasher.yml )
TO_YML=( el-shared.yml el-traefik.yml cl-shared.yml grafana-shared.yml prysm-web-shared.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-slasher.yml teku-base.yml teku-vc-only.yml lighthouse-cl-only.yml lighthouse-vc-only.yml lodestar-cl-only.yml lodestar-vc-only.yml nimbus-cl-only.yml prysm-cl-only.yml prysm-cl-only.yml prysm-vc-only.yml teku-cl-only.yml teku-vc-only.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-cl-only.yml nethermind.yml lighthouse.yml teku.yml nimbus.yml prysm.yml lodestar.yml "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" )

__old_grafana=0
__new_grafana=0
Expand Down
2 changes: 1 addition & 1 deletion geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
environment:
- JWT_SECRET=${JWT_SECRET}
- LOG_LEVEL=${LOG_LEVEL}
- EL_EXTRAS=${EL_EXTRAS:-}
volumes:
- geth-eth1-data:/var/lib/goethereum
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -72,7 +73,6 @@ services:
- --authrpc.vhosts=*
- --maxpeers
- ${EL_MAX_PEER_COUNT:-50}
command: ${EL_EXTRAS}
set-prune-marker:
profiles: ["tools"]
image: alpine:latest
Expand Down
4 changes: 2 additions & 2 deletions geth/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ case ${LOG_LEVEL} in
esac

if [ -f /var/lib/goethereum/prune-marker ]; then
"$@" snapshot prune-state
"$@" ${EL_EXTRAS} snapshot prune-state
rm -f /var/lib/goethereum/prune-marker
else
exec "$@" ${__verbosity}
exec "$@" ${__verbosity} ${EL_EXTRAS}
fi
2 changes: 1 addition & 1 deletion lighthouse-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
- BEACON_STATS_API=${BEACON_STATS_API}
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- MALLOC_ARENA_MAX=4
- CL_EXTRAS=${CL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -72,7 +73,6 @@ services:
- ${FEE_RECIPIENT}
- --subscribe-all-subnets
- --import-all-attestations
command: ${CL_EXTRAS}
labels:
- traefik.enable=true
- traefik.http.routers.cl.service=cl
Expand Down
6 changes: 0 additions & 6 deletions lighthouse-slasher.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lighthouse-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
- BEACON_STATS_API=${BEACON_STATS_API}
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
volumes:
- lhvalidator-data:/var/lib/lighthouse
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -54,7 +55,6 @@ services:
- --unencrypted-http-transport
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
command: ${VC_EXTRAS}

validator-import:
profiles: ["tools"]
Expand Down
4 changes: 2 additions & 2 deletions lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
- BEACON_STATS_API=${BEACON_STATS_API}
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- MALLOC_ARENA_MAX=4
- CL_EXTRAS=${CL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -70,7 +71,6 @@ services:
- --validator-monitor-auto
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
command: ${CL_EXTRAS}

validator:
restart: "unless-stopped"
Expand All @@ -81,6 +81,7 @@ services:
- BEACON_STATS_API=${BEACON_STATS_API}
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
volumes:
- lhvalidator-data:/var/lib/lighthouse
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -112,7 +113,6 @@ services:
- --unencrypted-http-transport
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
command: ${VC_EXTRAS}
depends_on:
- consensus

Expand Down
2 changes: 1 addition & 1 deletion lighthouse/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ else
__doppel=""
fi

exec "$@" ${__mev_boost} ${__beacon_stats} ${__doppel}
exec "$@" ${__mev_boost} ${__beacon_stats} ${__doppel} ${VC_EXTRAS}
2 changes: 1 addition & 1 deletion lighthouse/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ else
__beacon_stats=""
fi

exec "$@" ${__mev_boost} ${__rapid_sync} ${__beacon_stats}
exec "$@" ${__mev_boost} ${__rapid_sync} ${__beacon_stats} ${CL_EXTRAS}
2 changes: 1 addition & 1 deletion lodestar-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- CL_EXTRAS=${CL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -64,7 +65,6 @@ services:
- ${NETWORK}
- --suggestedFeeRecipient
- ${FEE_RECIPIENT}
command: ${CL_EXTRAS}
labels:
- traefik.enable=true
- traefik.http.routers.cl.service=cl
Expand Down
2 changes: 1 addition & 1 deletion lodestar-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
environment:
- MEV_BOOST=${MEV_BOOST}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
volumes:
- lsvalidator-data:/var/lib/lodestar/validators
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -48,7 +49,6 @@ services:
- ${NETWORK}
- --suggestedFeeRecipient
- ${FEE_RECIPIENT}
command: ${VC_EXTRAS}

validator-import:
profiles: ["tools"]
Expand Down
4 changes: 2 additions & 2 deletions lodestar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- CL_EXTRAS=${CL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -64,7 +65,6 @@ services:
- ${NETWORK}
- --suggestedFeeRecipient
- ${FEE_RECIPIENT}
command: ${CL_EXTRAS}

validator:
restart: "unless-stopped"
Expand All @@ -73,6 +73,7 @@ services:
environment:
- MEV_BOOST=${MEV_BOOST}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
volumes:
- lsvalidator-data:/var/lib/lodestar/validators
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -108,7 +109,6 @@ services:
- ${NETWORK}
- --suggestedFeeRecipient
- ${FEE_RECIPIENT}
command: ${VC_EXTRAS}

validator-import:
profiles: ["tools"]
Expand Down
2 changes: 1 addition & 1 deletion lodestar/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ else
__doppel=""
fi

exec "$@" ${__mev_boost} ${__doppel}
exec "$@" ${__mev_boost} ${__doppel} ${VC_EXTRAS}
2 changes: 1 addition & 1 deletion lodestar/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ else
__rapid_sync=""
fi

exec "$@" ${__mev_boost} ${__rapid_sync}
exec "$@" ${__mev_boost} ${__rapid_sync} ${CL_EXTRAS}
2 changes: 1 addition & 1 deletion nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
user: nethermind
environment:
- JWT_SECRET=${JWT_SECRET}
- EL_EXTRAS=${EL_EXTRAS:-}
volumes:
- nm-eth1-data:/var/lib/nethermind
- /etc/localtime:/etc/localtime:ro
Expand Down Expand Up @@ -81,7 +82,6 @@ services:
- "1"
- --log
- ${LOG_LEVEL}
command: ${EL_EXTRAS}
volumes:
nm-eth1-data:
jwtsecret:
2 changes: 1 addition & 1 deletion nethermind/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ if [[ -O "/var/lib/nethermind/ee-secret/jwtsecret" ]]; then
chmod 666 /var/lib/nethermind/ee-secret/jwtsecret
fi

exec "$@"
exec "$@" ${EL_EXTRAS}
3 changes: 2 additions & 1 deletion nimbus-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ services:
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- CL_EXTRAS=${CL_EXTRAS:-}
- VC_EXTRAS=
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -68,7 +70,6 @@ services:
- --suggested-fee-recipient=${FEE_RECIPIENT}
- --subscribe-all-subnets
- --in-process-validators=false
command: ${CL_EXTRAS}
labels:
- traefik.enable=true
- traefik.http.routers.cl.service=cl
Expand Down
2 changes: 1 addition & 1 deletion nimbus-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
environment:
- MEV_BOOST=${MEV_BOOST}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
<<: *logging
entrypoint:
- docker-entrypoint-vc.sh
Expand All @@ -43,7 +44,6 @@ services:
- --keymanager-allow-origin=*
- --keymanager-token-file=/var/lib/nimbus-vc/api-token.txt
- --suggested-fee-recipient=${FEE_RECIPIENT}
command: ${VC_EXTRAS}

validator-import:
profiles: ["tools"]
Expand Down
3 changes: 2 additions & 1 deletion nimbus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- DOPPELGANGER=${DOPPELGANGER}
- CL_EXTRAS=${CL_EXTRAS:-}
- VC_EXTRAS=${VC_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp
- ${HOST_IP:-0.0.0.0}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp
Expand Down Expand Up @@ -66,7 +68,6 @@ services:
- --keymanager-allow-origin=*
- --keymanager-token-file=/var/lib/nimbus/api-token.txt
- --suggested-fee-recipient=${FEE_RECIPIENT}
command: ${CL_EXTRAS}

validator-import:
profiles: ["tools"]
Expand Down
2 changes: 1 addition & 1 deletion nimbus/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ else
__doppel="--doppelganger-detection=false"
fi

exec "$@" ${__doppel}
exec "$@" ${__doppel} ${VC_EXTRAS}
2 changes: 1 addition & 1 deletion nimbus/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ else
__doppel="--doppelganger-detection=false"
fi

exec "$@" ${__mev_boost} ${__doppel}
exec "$@" ${__mev_boost} ${__doppel} ${CL_EXTRAS} ${VC_EXTRAS}
2 changes: 1 addition & 1 deletion prysm-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- CL_EXTRAS=${CL_EXTRAS:-}
ports:
- ${HOST_IP:-0.0.0.0}:${PRYSM_PORT}:${PRYSM_PORT}/tcp
- ${HOST_IP:-0.0.0.0}:${PRYSM_UDP_PORT}:${PRYSM_UDP_PORT}/udp
Expand Down Expand Up @@ -71,7 +72,6 @@ services:
- "8008"
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
command: ${CL_EXTRAS}
labels:
- traefik.enable=true
- traefik.http.routers.cl.entrypoints=websecure
Expand Down
5 changes: 0 additions & 5 deletions prysm-slasher.yml

This file was deleted.

5 changes: 4 additions & 1 deletion prysm-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ services:
volumes:
- prysmvalidator-data:/var/lib/prysm
- /etc/localtime:/etc/localtime:ro
environment:
- MEV_BOOST=${MEV_BOOST}
- DOPPELGANGER=${DOPPELGANGER}
- VC_EXTRAS=${VC_EXTRAS:-}
<<: *logging
entrypoint:
- docker-entrypoint-vc.sh
Expand Down Expand Up @@ -59,7 +63,6 @@ services:
# If you chose not to store the wallet password during import, comment out the two following lines
- --wallet-password-file
- /var/lib/prysm/password.txt
command: ${VC_EXTRAS}
labels:
- traefik.enable=true
- traefik.http.routers.prysm.entrypoints=web,websecure
Expand Down
Loading

0 comments on commit 654812b

Please sign in to comment.