-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new dl-pipe utility to get resumable piped downloads (#6)
* Use new dl-pipe utility to get resumable piped downloads * move genesis bin creation and link to init.sh This is to tolerate .zetacored being mounted on a volume * fix snapshotter build * add hash verification * add procps * use testnet snapshot for CI * fix init_completed * remove VOLUME * add restart CI
- Loading branch information
Showing
3 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,28 @@ 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 | ||
|
||
RUN mkdir -p /root/.zetacored/cosmovisor/genesis/bin && \ | ||
ln -s /root/.zetacored/cosmovisor/genesis /root/.zetacored/cosmovisor/current | ||
|
||
ENV PATH=/root/.zetacored/cosmovisor/current/bin/:${PATH} | ||
|
||
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 / | ||
|
||
VOLUME /root/.zetacored/data/ | ||
|
||
ENTRYPOINT ["/run.sh"] | ||
|
||
FROM base AS snapshotter | ||
|
||
ARG TARGETARCH | ||
|
||
RUN apt update && \ | ||
apt install -y rclone && \ | ||
apt install -y rclone procps && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ARCH=$( [ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH" ) && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters