diff --git a/viction/node/viction-mainnet-node-archive-leveldb-hash.yml b/viction/node/viction-mainnet-node-archive-leveldb-hash.yml index ebfb9819..654518fd 100644 --- a/viction/node/viction-mainnet-node-archive-leveldb-hash.yml +++ b/viction/node/viction-mainnet-node-archive-leveldb-hash.yml @@ -2,15 +2,15 @@ services: viction-mainnet-archive-download: image: alpine:latest + environment: + - SNAPSHOT_URL=https://snapshot.viction.xyz/archive-node volumes: - viction-mainnet-node-archive-leveldb-hash:/tomochain/data - entrypoint: ["sh", "-c", "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && eval \"$SNAPSHOT_CMD\" && tail -f /dev/null"] + - ./tomochain/scripts/download.node.sh:/download.sh + command: /bin/sh -c "chmod +x /download.sh && /download.sh" restart: "no" - environment: - SNAPSHOT_CMD: 'mkdir -p /tomochain/data/tomo/chaindata; rm -rf /tomochain/data/tomo/chaindata/*; wget -c https://snapshot.viction.xyz/archive-node/CHAIN_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomo/chaindata; mkdir -p /tomochain/dats/tomox; rm -rf /tomochain/data/tomox/*; wget -c https://snapshot.viction.xyz/archive-node/TOMOX_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomox' profiles: - manual - tty: true viction-mainnet-archive-client: image: buildonviction/node:v2.4.5 diff --git a/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml b/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml index 98e3d4d7..cbdd94ab 100644 --- a/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml +++ b/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml @@ -2,15 +2,15 @@ services: viction-mainnet-download: image: alpine:latest + environment: + - SNAPSHOT_URL=https://snapshot.viction.xyz volumes: - viction-mainnet-node-pruned-leveldb-hash:/tomochain/data - entrypoint: ["sh", "-c", "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && eval \"$SNAPSHOT_CMD\" && tail -f /dev/null"] + - ./tomochain/scripts/download.node.sh:/download.sh + command: /bin/sh -c "chmod +x /download.sh && /download.sh" restart: "no" - environment: - SNAPSHOT_CMD: 'mkdir -p /tomochain/data/tomo/chaindata; rm -rf /tomochain/data/tomo/chaindata/*; wget -c https://snapshot.viction.xyz/CHAIN_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomo/chaindata; mkdir -p /tomochain/dats/tomox; rm -rf /tomochain/data/tomox/*; wget -c https://snapshot.viction.xyz/TOMOX_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomox' profiles: - manual - tty: true viction-mainnet-client: image: buildonviction/node:v2.4.5