diff --git a/besu.yml b/besu.yml index e626f754..d3437394 100644 --- a/besu.yml +++ b/besu.yml @@ -28,8 +28,7 @@ services: - ARCHIVE_NODE=${ARCHIVE_NODE:-} - NETWORK=${NETWORK} volumes: - - besu-eth1-data:/var/lib/besu-og - - besu-el-data:/var/lib/besu + - besu-eth1-data:/var/lib/besu - /etc/localtime:/etc/localtime:ro - jwtsecret:/var/lib/besu/ee-secret ports: @@ -87,13 +86,12 @@ services: user: "10001:10001" restart: "no" volumes: - - besu-el-data:/var/lib/besu + - besu-eth1-data:/var/lib/besu entrypoint: ["/bin/sh","-c"] command: /bin/sh volumes: besu-eth1-data: - besu-el-data: jwtsecret: networks: diff --git a/besu/Dockerfile.binary b/besu/Dockerfile.binary index 4d8f3173..1c8404b5 100644 --- a/besu/Dockerfile.binary +++ b/besu/Dockerfile.binary @@ -22,8 +22,6 @@ RUN set -eux; \ # verify that the binary works gosu nobody true -# Create mount point for old volume -RUN mkdir -p /var/lib/besu-og && chown -R ${USER}:${USER} /var/lib/besu-og # Create data mount point with permissions RUN mkdir -p /var/lib/besu/ee-secret && chown -R ${USER}:${USER} /var/lib/besu && chmod -R 700 /var/lib/besu && chmod 777 /var/lib/besu/ee-secret diff --git a/besu/Dockerfile.source b/besu/Dockerfile.source index 422e70d1..988445e5 100644 --- a/besu/Dockerfile.source +++ b/besu/Dockerfile.source @@ -46,8 +46,6 @@ RUN adduser \ --ingroup "${USER}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/besu-og && chown -R ${USER}:${USER} /var/lib/besu-og RUN mkdir -p /var/lib/besu/ee-secret && chown -R besu:besu /var/lib/besu && chmod -R 700 /var/lib/besu && chmod 777 /var/lib/besu/ee-secret # Cannot assume buildkit, hence no chmod diff --git a/besu/docker-entrypoint.sh b/besu/docker-entrypoint.sh index 76c2996b..ea5c8a5a 100755 --- a/besu/docker-entrypoint.sh +++ b/besu/docker-entrypoint.sh @@ -6,15 +6,6 @@ if [ "$(id -u)" = '0' ]; then exec gosu besu "${BASH_SOURCE[0]}" "$@" fi -# Migrate from old to new volume -if [[ -d /var/lib/besu-og && ! -f /var/lib/besu-og/migrationdone \ - && $(ls -A /var/lib/besu-og/) ]]; then - echo "Migrating from old Besu volume to new one" - find /var/lib/besu-og/ -mindepth 1 -maxdepth 1 ! -name 'ee-secret' -exec mv -t /var/lib/besu/ {} + - touch /var/lib/besu-og/migrationdone - echo "Migration completed, data is now in volume \"besu-el-data\"" -fi - if [ -n "${JWT_SECRET}" ]; then echo -n "${JWT_SECRET}" > /var/lib/besu/ee-secret/jwtsecret echo "JWT secret was supplied in .env" diff --git a/ethd b/ethd index 76389110..1bf8961e 100755 --- a/ethd +++ b/ethd @@ -1331,10 +1331,10 @@ resync-execution() { case "${value}" in *erigon.yml* ) __el_volume='erigon-el-data'; __el_client="erigon";; - *geth.yml* ) __el_volume='geth-el-data'; __el_client="geth";; + *geth.yml* ) __el_volume='geth-eth1-data'; __el_client="geth";; *reth.yml* ) __el_volume='reth-el-data'; __el_client="reth";; - *besu.yml* ) __el_volume='besu-el-data'; __el_client="besu";; - *nethermind.yml* ) __el_volume='nethermind-el-data'; __el_client="nethermind";; + *besu.yml* ) __el_volume='besu-eth1-data'; __el_client="besu";; + *nethermind.yml* ) __el_volume='nm-eth1-data'; __el_client="nethermind";; * ) echo "You do not appear to be running an execution layer client. Nothing to do."; return 0;; esac @@ -1368,13 +1368,15 @@ resync-consensus() { value=$(sed -n -e "s/^${var}=\(.*\)/\1/p" "${ENV_FILE}" || true) case "${value}" in - *lighthouse.yml* | *lighthouse-cl-only.yml* ) __cl_volume='lhconsensus-data'; __cl_client="lighthouse";; + *lighthouse.yml* ) __cl_volume='lhbeacon-data'; __cl_client="lighthouse";; + *lighthouse-cl-only.yml* ) __cl_volume='lhconsensus-data'; __cl_client="lighthouse";; *teku-allin1.yml* ) __cl_volume='wipe-db'; __cl_client="teku";; *teku.yml* | *teku-cl-only.yml* ) __cl_volume='tekuconsensus-data'; __cl_client="teku";; *nimbus-allin1.yml* ) __cl_volume='wipe-db'; __cl_client="nimbus";; *nimbus.yml* | *nimbus-cl-only.yml* ) __cl_volume='nimbus-consensus-data'; __cl_client="nimbus";; *lodestar.yml* | *lodestar-cl-only.yml* ) __cl_volume='lsconsensus-data'; __cl_client="lodestar";; - *prysm.yml* | *prysm-cl-only.yml* ) __cl_volume='prysmconsensus-data'; __cl_client="prysm";; + *prysm.yml* ) __cl_volume='prysmbeacon-data'; __cl_client="prysm";; + *prysm-cl-only.yml* ) __cl_volume='prysmconsensus-data'; __cl_client="prysm";; *grandine-allin1.yml* ) __cl_volume='wipe-db'; __cl_client="grandine";; *grandine.yml* | *grandine-cl-only.yml* ) __cl_volume='grandineconsensus-data'; __cl_client="grandine";; * ) echo "You do not appear to be running a consensus layer client. Nothing to do."; return;; diff --git a/geth.yml b/geth.yml index a358be9d..82188fa4 100644 --- a/geth.yml +++ b/geth.yml @@ -30,8 +30,7 @@ services: - IPV6=${IPV6:-false} - ANCIENT_DIR=${ANCIENT_DIR:-} volumes: - - geth-eth1-data:/var/lib/goethereum-og - - geth-el-data:/var/lib/goethereum + - geth-eth1-data:/var/lib/goethereum - ${ANCIENT_DIR:-.nada}:/var/lib/ancient - /etc/localtime:/etc/localtime:ro - jwtsecret:/var/lib/goethereum/ee-secret @@ -85,7 +84,6 @@ services: volumes: geth-eth1-data: - geth-el-data: jwtsecret: networks: diff --git a/geth/Dockerfile.binary b/geth/Dockerfile.binary index af3e6d00..baa7652a 100644 --- a/geth/Dockerfile.binary +++ b/geth/Dockerfile.binary @@ -27,8 +27,6 @@ RUN adduser \ --ingroup "${USER}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/goethereum-og && chown -R ${USER}:${USER} /var/lib/goethereum-og RUN mkdir -p /var/lib/goethereum/ee-secret && chown -R ${USER}:${USER} /var/lib/goethereum && chmod -R 700 /var/lib/goethereum && chmod 777 /var/lib/goethereum/ee-secret # Cannot assume buildkit, hence no chmod diff --git a/geth/Dockerfile.source b/geth/Dockerfile.source index 71e23e42..73055e39 100644 --- a/geth/Dockerfile.source +++ b/geth/Dockerfile.source @@ -38,8 +38,6 @@ RUN adduser \ --ingroup "${USER}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/goethereum-og && chown -R ${USER}:${USER} /var/lib/goethereum-og RUN mkdir -p /var/lib/goethereum/ee-secret && chown -R ${USER}:${USER} /var/lib/goethereum && chmod -R 700 /var/lib/goethereum && chmod 777 /var/lib/goethereum/ee-secret # Cannot assume buildkit, hence no chmod diff --git a/geth/docker-entrypoint.sh b/geth/docker-entrypoint.sh index b1fafb21..1238801c 100755 --- a/geth/docker-entrypoint.sh +++ b/geth/docker-entrypoint.sh @@ -6,15 +6,6 @@ if [ "$(id -u)" = '0' ]; then exec su-exec geth docker-entrypoint.sh "$@" fi -# Migrate from old to new volume -if [[ -d /var/lib/goethereum-og && ! -f /var/lib/goethereum-og/migrationdone \ - && $(ls -A /var/lib/goethereum-og/) ]]; then - echo "Migrating from old Geth volume to new one" - find /var/lib/goethereum-og/ -mindepth 1 -maxdepth 1 ! -name 'ee-secret' -exec mv -t /var/lib/goethereum/ {} + - touch /var/lib/goethereum-og/migrationdone - echo "Migration completed, data is now in volume \"geth-el-data\"" -fi - if [ -n "${JWT_SECRET}" ]; then echo -n "${JWT_SECRET}" > /var/lib/goethereum/ee-secret/jwtsecret echo "JWT secret was supplied in .env" diff --git a/lighthouse.yml b/lighthouse.yml index 88654d25..13fed5d2 100644 --- a/lighthouse.yml +++ b/lighthouse.yml @@ -26,8 +26,7 @@ services: user: lhconsensus stop_grace_period: 1m volumes: - - lhbeacon-data:/var/lib/lighthouse-og - - lhconsensus-data:/var/lib/lighthouse + - lhbeacon-data:/var/lib/lighthouse - /etc/localtime:/etc/localtime:ro - jwtsecret:/var/lib/lighthouse/beacon/ee-secret environment: @@ -222,13 +221,12 @@ services: user: "10002:10002" restart: "no" volumes: - - lhconsensus-data:/var/lib/lighthouse + - lhbeacon-data:/var/lib/lighthouse entrypoint: ["/bin/sh","-c"] command: /bin/sh volumes: lhbeacon-data: - lhconsensus-data: lhvalidator-data: jwtsecret: diff --git a/lighthouse/Dockerfile.binary b/lighthouse/Dockerfile.binary index 08d7c93f..8684bc3b 100644 --- a/lighthouse/Dockerfile.binary +++ b/lighthouse/Dockerfile.binary @@ -20,8 +20,6 @@ RUN adduser \ --uid "${UID}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/lighthouse-og && chown -R ${USER}:${USER} /var/lib/lighthouse-og # Create data mount point with permissions RUN mkdir -p /var/lib/lighthouse/beacon/ee-secret && chown -R ${USER}:${USER} /var/lib/lighthouse/beacon && chmod -R 700 /var/lib/lighthouse/beacon && chmod 777 /var/lib/lighthouse/beacon/ee-secret # Cannot assume buildkit, hence no chmod diff --git a/lighthouse/Dockerfile.source b/lighthouse/Dockerfile.source index 0f7044f2..471ed2cd 100644 --- a/lighthouse/Dockerfile.source +++ b/lighthouse/Dockerfile.source @@ -47,8 +47,6 @@ RUN adduser \ --uid "${UID}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/lighthouse-og && chown -R ${USER}:${USER} /var/lib/lighthouse-og # Create data mount point with permissions RUN mkdir -p /var/lib/lighthouse/beacon/ee-secret && chown -R ${USER}:${USER} /var/lib/lighthouse/beacon && chmod -R 700 /var/lib/lighthouse/beacon && chmod 777 /var/lib/lighthouse/beacon/ee-secret # Cannot assume buildkit, hence no chmod diff --git a/lighthouse/docker-entrypoint.sh b/lighthouse/docker-entrypoint.sh index b6fe82c3..f186f2a7 100755 --- a/lighthouse/docker-entrypoint.sh +++ b/lighthouse/docker-entrypoint.sh @@ -6,15 +6,6 @@ if [ "$(id -u)" = '0' ]; then exec gosu lhconsensus docker-entrypoint.sh "$@" fi -# Migrate from old to new volume -if [[ -d /var/lib/lighthouse-og/beacon && ! -f /var/lib/lighthouse-og/beacon/migrationdone \ - && $(ls -A /var/lib/lighthouse-og/beacon/) ]]; then - echo "Migrating from old Lighthouse volume to new one" - find /var/lib/lighthouse-og/beacon/ -mindepth 1 -maxdepth 1 ! -name 'ee-secret' -exec mv -t /var/lib/lighthouse/beacon/ {} + - touch /var/lib/lighthouse-og/beacon/migrationdone - echo "Migration completed, data is now in volume \"lhconsensus-data\"" -fi - if [ -n "${JWT_SECRET}" ]; then echo -n "${JWT_SECRET}" > /var/lib/lighthouse/beacon/ee-secret/jwtsecret echo "JWT secret was supplied in .env" diff --git a/nethermind.yml b/nethermind.yml index 40ecebda..ecc317a1 100644 --- a/nethermind.yml +++ b/nethermind.yml @@ -29,8 +29,7 @@ services: - AUTOPRUNE_NM=${AUTOPRUNE_NM:-true} - NETWORK=${NETWORK} volumes: - - nm-eth1-data:/var/lib/nethermind-og - - nethermind-el-data:/var/lib/nethermind + - nm-eth1-data:/var/lib/nethermind - /etc/localtime:/etc/localtime:ro - jwtsecret:/var/lib/nethermind/ee-secret ports: @@ -93,7 +92,6 @@ services: volumes: nm-eth1-data: - nethermind-el-data: jwtsecret: networks: diff --git a/nethermind/Dockerfile.binary b/nethermind/Dockerfile.binary index effe4b37..6bc6b979 100644 --- a/nethermind/Dockerfile.binary +++ b/nethermind/Dockerfile.binary @@ -36,8 +36,6 @@ RUN set -eux; \ # This only goes so far. keystore, logs and nethermind_db are volumes and need to be chown'd in the entrypoint RUN chown -R ${USER}:${USER} /nethermind -# Create mount point for old volume -RUN mkdir -p /var/lib/nethermind-og && chown -R ${USER}:${USER} /var/lib/nethermind-og RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind \ && chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret diff --git a/nethermind/Dockerfile.source b/nethermind/Dockerfile.source index 25208de1..11e064e0 100644 --- a/nethermind/Dockerfile.source +++ b/nethermind/Dockerfile.source @@ -49,8 +49,6 @@ WORKDIR /nethermind COPY --from=build --chown=${USER}:${USER} /nethermind/out . RUN chown -R ${USER}:${USER} /nethermind -# Create mount point for old volume -RUN mkdir -p /var/lib/nethermind-og && chown -R ${USER}:${USER} /var/lib/nethermind-og RUN mkdir -p /var/lib/nethermind/ee-secret && chown -R ${USER}:${USER} /var/lib/nethermind \ && chmod -R 700 /var/lib/nethermind && chmod 777 /var/lib/nethermind/ee-secret diff --git a/nethermind/docker-entrypoint.sh b/nethermind/docker-entrypoint.sh index 16a5de45..bef68cca 100755 --- a/nethermind/docker-entrypoint.sh +++ b/nethermind/docker-entrypoint.sh @@ -6,15 +6,6 @@ if [ "$(id -u)" = '0' ]; then exec gosu nethermind "${BASH_SOURCE[0]}" "$@" fi -# Migrate from old to new volume -if [[ -d /var/lib/nethermind-og && ! -f /var/lib/nethermind-og/migrationdone \ - && $(ls -A /var/lib/nethermind-og/) ]]; then - echo "Migrating from old Nethermind volume to new one" - find /var/lib/nethermind-og/ -mindepth 1 -maxdepth 1 ! -name 'ee-secret' -exec mv -t /var/lib/nethermind/ {} + - touch /var/lib/nethermind-og/migrationdone - echo "Migration completed, data is now in volume \"nethermind-el-data\"" -fi - # Move legacy xdai dir to gnosis if [ -d "/var/lib/nethermind/nethermind_db/xdai" ]; then mv /var/lib/nethermind/nethermind_db/xdai /var/lib/nethermind/nethermind_db/gnosis diff --git a/prysm.yml b/prysm.yml index dfc8f579..ba6570ad 100644 --- a/prysm.yml +++ b/prysm.yml @@ -28,8 +28,7 @@ services: user: prysmconsensus stop_grace_period: 1m volumes: - - prysmbeacon-data:/var/lib/prysm-og - - prysmconsensus-data:/var/lib/prysm + - prysmbeacon-data:/var/lib/prysm - /etc/localtime:/etc/localtime:ro - jwtsecret:/var/lib/prysm/ee-secret environment: @@ -249,7 +248,6 @@ services: volumes: prysmbeacon-data: - prysmconsensus-data: prysmvalidator-data: jwtsecret: diff --git a/prysm/Dockerfile.binary b/prysm/Dockerfile.binary index aafc8ddd..479827ff 100644 --- a/prysm/Dockerfile.binary +++ b/prysm/Dockerfile.binary @@ -36,8 +36,6 @@ RUN adduser \ --uid "${UID}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/prysm-og && chown -R ${USER}:${USER} /var/lib/prysm-og # Create data mount point with permissions RUN mkdir -p /var/lib/prysm/ee-secret && chown -R ${USER}:${USER} /var/lib/prysm && chmod -R 700 /var/lib/prysm && chmod 777 /var/lib/prysm/ee-secret diff --git a/prysm/Dockerfile.source b/prysm/Dockerfile.source index e58b15a5..a79c231e 100644 --- a/prysm/Dockerfile.source +++ b/prysm/Dockerfile.source @@ -46,8 +46,6 @@ RUN adduser \ --uid "${UID}" \ "${USER}" -# Create mount point for old volume -RUN mkdir -p /var/lib/prysm-og && chown -R ${USER}:${USER} /var/lib/prysm-og # Create data mount point with permissions RUN mkdir -p /var/lib/prysm/ee-secret && chown -R ${USER}:${USER} /var/lib/prysm && chmod -R 700 /var/lib/prysm && chmod 777 /var/lib/prysm/ee-secret diff --git a/prysm/docker-entrypoint.sh b/prysm/docker-entrypoint.sh index bb2b20e0..cef6342a 100755 --- a/prysm/docker-entrypoint.sh +++ b/prysm/docker-entrypoint.sh @@ -6,15 +6,6 @@ if [ "$(id -u)" = '0' ]; then exec gosu prysmconsensus docker-entrypoint.sh "$@" fi -# Migrate from old to new volume -if [[ -d /var/lib/prysm-og && ! -f /var/lib/prysm-og/migrationdone \ - && $(ls -A /var/lib/prysm-og/) ]]; then - echo "Migrating from old Prysm volume to new one" - find /var/lib/prysm-og/ -mindepth 1 -maxdepth 1 ! -name 'ee-secret' -exec mv -t /var/lib/prysm/ {} + - touch /var/lib/prysm-og/migrationdone - echo "Migration completed, data is now in volume \"prysmconsensus-data\"" -fi - if [ -n "${JWT_SECRET}" ]; then echo -n "${JWT_SECRET}" > /var/lib/prysm/ee-secret/jwtsecret echo "JWT secret was supplied in .env"