1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ramekin-agent
# Rust toolchain for parallax. Edition 2024 needs a recent stable, so use
# rustup rather than Debian's rustc.
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain stable --profile minimal \
&& /root/.cargo/bin/rustup component add clippy rustfmt llvm-tools
ENV PATH="/root/.cargo/bin:$PATH"
# bin/coverage needs grcov for the report and bc for the threshold
# comparison. grcov is pinned so report behavior is stable.
RUN apt-get update \
&& apt-get install -y --no-install-recommends bc \
&& rm -rf /var/lib/apt/lists/* \
&& cargo install grcov --version 0.10.7 --locked