Skip to content

Commit

Permalink
Use release images for zcash-params downloads (#7097)
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Jun 29, 2023
1 parent 455779c commit aa84893
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker/zcash-params/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# This image is for caching Zcash Sprout and Sapling parameters
# This image is for caching Zcash Sprout and Sapling parameters.
# We don't test it automatically in CI due to download server rate-limiting.
# To manually run it on the PR branch before merging, go to:
# https://github.com/ZcashFoundation/zebra/actions/workflows/zcash-params.yml

FROM debian:bullseye-slim AS release

# Just use the precompiled zebrad binary from a recent test image.
# Just use the precompiled zebrad binary from a recent release image.
#
# It doesn't matter what build or commit of Zebra we use, because it just calls into the
# zcash_proofs download code. (Which doesn't change much.)
# Release image zebrad binaries would also work.
# Test image zebrad binaries would also work, but it's harder to get a recent tag for them.
#
# Compiling the download-params example using `cargo ` is another alternative:
# `cargo run --locked --release --features default-docker --example download-params`
COPY --from=us-docker.pkg.dev/zealous-zebra/zebra/zebrad-test /usr/local/bin/zebrad /usr/local/bin
COPY --from=zfnd/zebra:latest /usr/local/bin/zebrad /usr/local/bin

# Pre-download Zcash Sprout and Sapling parameters
RUN zebrad download

0 comments on commit aa84893

Please sign in to comment.