From 1600e04fefc08668e28784f76c89a0212799a33b Mon Sep 17 00:00:00 2001 From: squidbear <379651+czarly@users.noreply.github.com> Date: Mon, 31 Mar 2025 09:07:53 +0200 Subject: [PATCH] fix --- .../viction-mainnet-node-archive-leveldb-hash.yml | 14 +++++++++++++- .../viction-mainnet-node-pruned-leveldb-hash.yml | 14 +++++++++++++- .../viction-testnet-node-archive-leveldb-hash.yml | 3 ++- .../viction-testnet-node-pruned-leveldb-hash.yml | 3 ++- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/viction/node/viction-mainnet-node-archive-leveldb-hash.yml b/viction/node/viction-mainnet-node-archive-leveldb-hash.yml index d20dd64d..b601c297 100644 --- a/viction/node/viction-mainnet-node-archive-leveldb-hash.yml +++ b/viction/node/viction-mainnet-node-archive-leveldb-hash.yml @@ -1,5 +1,18 @@ services: + viction-mainnet-archive-download: + image: alpine:latest + volumes: + - viction-mainnet-node-archive-leveldb-hash:/tomochain/data + command: sh -c "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && exec \"$@\"" + entrypoint: ["sh", "-c", "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && eval \"$SNAPSHOT_CMD\""] + 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 stop_grace_period: 5m @@ -20,7 +33,6 @@ services: environment: EXTIP: "${IP}" P2P_PORT: 10184 - SNAPSHOT_CMD: 'mkdir -p /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/data/tomox; wget -c https://snapshot.viction.xyz/archive-node/TOMOX_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomox' command: - --tomox - --tomox.datadir=/tomochain/data/tomox diff --git a/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml b/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml index f9aae469..d32fcee1 100644 --- a/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml +++ b/viction/node/viction-mainnet-node-pruned-leveldb-hash.yml @@ -1,5 +1,18 @@ services: + viction-mainnet-download: + image: alpine:latest + volumes: + - viction-mainnet-node-pruned-leveldb-hash:/tomochain/data + command: sh -c "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && exec \"$@\"" + entrypoint: ["sh", "-c", "apk add --no-cache wget tar zstd && echo 'Running with wget, tar, and zstd' && eval \"$SNAPSHOT_CMD\""] + 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 stop_grace_period: 5m @@ -20,7 +33,6 @@ services: environment: EXTIP: "${IP}" P2P_PORT: 10670 - SNAPSHOT_CMD: 'mkdir -p /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/data/tomox; wget -c https://snapshot.viction.xyz/TOMOX_DATA.tar.zst -O - | tar zstd xvf -C /tomochain/data/tomox' command: - --tomox - --tomox.datadir=/tomochain/data/tomox diff --git a/viction/node/viction-testnet-node-archive-leveldb-hash.yml b/viction/node/viction-testnet-node-archive-leveldb-hash.yml index ecf7a0cc..c9161c57 100644 --- a/viction/node/viction-testnet-node-archive-leveldb-hash.yml +++ b/viction/node/viction-testnet-node-archive-leveldb-hash.yml @@ -1,5 +1,7 @@ services: + + viction-testnet-archive-client: image: buildonviction/node:v2.4.5 stop_grace_period: 5m @@ -20,7 +22,6 @@ services: environment: EXTIP: "${IP}" P2P_PORT: 10689 - command: - --tomox - --tomox.datadir=/tomochain/data/tomox diff --git a/viction/node/viction-testnet-node-pruned-leveldb-hash.yml b/viction/node/viction-testnet-node-pruned-leveldb-hash.yml index 66c3f720..3ffbb18f 100644 --- a/viction/node/viction-testnet-node-pruned-leveldb-hash.yml +++ b/viction/node/viction-testnet-node-pruned-leveldb-hash.yml @@ -1,5 +1,7 @@ services: + + viction-testnet-client: image: buildonviction/node:v2.4.5 stop_grace_period: 5m @@ -20,7 +22,6 @@ services: environment: EXTIP: "${IP}" P2P_PORT: 10254 - command: - --tomox - --tomox.datadir=/tomochain/data/tomox