From c288d157621986a5d3b2bbee28c37b558d9ad8b6 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Thu, 29 Aug 2024 16:54:13 -0700 Subject: [PATCH] Use new dl-pipe utility to get resumable piped downloads --- Dockerfile | 1 + init.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5837eb9..8a9092d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM golang:1.22.5-bookworm AS base-build RUN go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0 RUN go install github.com/hashicorp/go-getter/cmd/go-getter@v1.7.6 +RUN go install github.com/zeta-chain/dl-pipe/cmd/dl-pipe@latest FROM debian:bookworm AS base diff --git a/init.sh b/init.sh index 5437bb6..4527b33 100755 --- a/init.sh +++ b/init.sh @@ -89,7 +89,7 @@ install_genesis_zetacored() { restore_snapshot() { snapshot_link=$($CURL "${ZETACHAIN_SNAPSHOT_METADATA_URL}" | jq -r '.snapshots[0].link') echo "Restoring snapshot from ${snapshot_link}" - $CURL "$snapshot_link" | tar x -C $HOME/.zetacored + dl-pipe "$snapshot_link" | tar x -C $HOME/.zetacored } cd $HOME