2023-02-09 22:14:25 -08:00
|
|
|
# syntax=docker/dockerfile:1.5-labs
|
|
|
|
FROM rust:1.67.0
|
|
|
|
|
|
|
|
# Setup protoc. TODO this breaks reproducibility and uses an old version of protoc.
|
|
|
|
# In the future protobuf generated files will be checked in, so we can remove this
|
|
|
|
WORKDIR /protoc-setup
|
|
|
|
RUN apt-get update && apt-get install -y cmake protobuf-compiler
|
|
|
|
|
|
|
|
# Run with access to the target cache to speed up builds
|
|
|
|
WORKDIR /workspace
|
|
|
|
ADD . .
|
|
|
|
RUN --mount=type=cache,target=./target \
|
|
|
|
--mount=type=cache,target=/usr/local/cargo/registry \
|
|
|
|
cargo build --package interop-tests
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=./target \
|
|
|
|
mv ./target/debug/ping /usr/local/bin/testplan
|
|
|
|
|
2023-01-19 20:20:37 +00:00
|
|
|
ENV RUST_BACKTRACE=1
|
|
|
|
ENTRYPOINT ["testplan"]
|