2020-11-20 13:02:45 -08:00
|
|
|
FROM rust:buster
|
2020-11-18 11:41:47 -08:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2020-12-04 02:54:18 -08:00
|
|
|
make cmake g++ gcc llvm libclang-dev clang
|
2020-11-18 11:41:47 -08:00
|
|
|
|
|
|
|
RUN mkdir /zebra
|
|
|
|
WORKDIR /zebra
|
|
|
|
|
2020-12-03 19:51:42 -08:00
|
|
|
ARG SHORT_SHA
|
|
|
|
ENV SHORT_SHA $SHORT_SHA
|
|
|
|
|
2020-11-22 18:19:08 -08:00
|
|
|
ENV RUST_BACKTRACE full
|
2020-11-18 11:41:47 -08:00
|
|
|
ENV CARGO_HOME /zebra/.cargo/
|
|
|
|
|
|
|
|
RUN rustc -V; cargo -V; rustup -V
|
|
|
|
|
|
|
|
EXPOSE 8233 18233
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2020-11-21 14:52:56 -08:00
|
|
|
RUN cargo test --all --no-run
|
|
|
|
|
2020-11-20 13:02:45 -08:00
|
|
|
CMD cargo test --workspace --no-fail-fast -- -Zunstable-options --include-ignored
|