This commit is contained in:
squidbear
2025-03-31 09:07:53 +02:00
parent 4c7560053d
commit 1600e04fef
4 changed files with 30 additions and 4 deletions

View File

@@ -1,5 +1,18 @@
services: 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: viction-mainnet-archive-client:
image: buildonviction/node:v2.4.5 image: buildonviction/node:v2.4.5
stop_grace_period: 5m stop_grace_period: 5m
@@ -20,7 +33,6 @@ services:
environment: environment:
EXTIP: "${IP}" EXTIP: "${IP}"
P2P_PORT: 10184 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: command:
- --tomox - --tomox
- --tomox.datadir=/tomochain/data/tomox - --tomox.datadir=/tomochain/data/tomox

View File

@@ -1,5 +1,18 @@
services: 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: viction-mainnet-client:
image: buildonviction/node:v2.4.5 image: buildonviction/node:v2.4.5
stop_grace_period: 5m stop_grace_period: 5m
@@ -20,7 +33,6 @@ services:
environment: environment:
EXTIP: "${IP}" EXTIP: "${IP}"
P2P_PORT: 10670 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: command:
- --tomox - --tomox
- --tomox.datadir=/tomochain/data/tomox - --tomox.datadir=/tomochain/data/tomox

View File

@@ -1,5 +1,7 @@
services: services:
viction-testnet-archive-client: viction-testnet-archive-client:
image: buildonviction/node:v2.4.5 image: buildonviction/node:v2.4.5
stop_grace_period: 5m stop_grace_period: 5m
@@ -20,7 +22,6 @@ services:
environment: environment:
EXTIP: "${IP}" EXTIP: "${IP}"
P2P_PORT: 10689 P2P_PORT: 10689
command: command:
- --tomox - --tomox
- --tomox.datadir=/tomochain/data/tomox - --tomox.datadir=/tomochain/data/tomox

View File

@@ -1,5 +1,7 @@
services: services:
viction-testnet-client: viction-testnet-client:
image: buildonviction/node:v2.4.5 image: buildonviction/node:v2.4.5
stop_grace_period: 5m stop_grace_period: 5m
@@ -20,7 +22,6 @@ services:
environment: environment:
EXTIP: "${IP}" EXTIP: "${IP}"
P2P_PORT: 10254 P2P_PORT: 10254
command: command:
- --tomox - --tomox
- --tomox.datadir=/tomochain/data/tomox - --tomox.datadir=/tomochain/data/tomox