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 495ffcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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/[email protected]
RUN go install github.com/hashicorp/go-getter/cmd/[email protected]
RUN go install github.com/zeta-chain/dl-pipe/cmd/dl-pipe@latest

FROM debian:bookworm AS base

Expand All @@ -14,7 +15,7 @@ RUN apt update && \
apt install -y ca-certificates curl jq && \
rm -rf /var/lib/apt/lists/*

COPY --from=base-build /go/bin/cosmovisor /go/bin/go-getter /usr/local/bin
COPY --from=base-build /go/bin/cosmovisor /go/bin/go-getter /go/bin/dl-pipe /usr/local/bin

COPY run.sh init.sh /

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 495ffcd

Please sign in to comment.