Skip to content

Commit

Permalink
Use new dl-pipe utility to get resumable piped downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 30, 2024
1 parent 72406b1 commit c288d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c288d15

Please sign in to comment.