FROM rust:buster RUN apt-get update && \ apt-get install -y --no-install-recommends \ make cmake g++ gcc llvm libclang-dev clang RUN mkdir /zebra WORKDIR /zebra ARG SHORT_SHA ENV SHORT_SHA $SHORT_SHA ENV RUST_BACKTRACE full ENV CARGO_HOME /zebra/.cargo/ # Optimize builds. In particular, regenerate-stateful-test-disks.yml was reaching the # GitHub Actions time limit (6 hours), so we needed to make it faster. ENV RUSTFLAGS -O RUN rustc -V; cargo -V; rustup -V EXPOSE 8233 18233 COPY . . # Pre-download Zcash Sprout and Sapling parameters RUN cargo run --verbose --bin zebrad download RUN cargo test --all --no-run CMD cargo test --workspace --no-fail-fast -- -Zunstable-options --include-ignored