2018-09-27 14:42:49 -06:00
|
|
|
# Note: when the rust version is changed also modify
|
2018-09-07 16:41:55 -07:00
|
|
|
# ci/buildkite.yml to pick up the new image tag
|
2019-04-15 15:56:08 -06:00
|
|
|
FROM rust:1.34.0
|
2018-07-30 15:56:49 -07:00
|
|
|
|
2018-12-18 09:56:43 -08:00
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
|
|
|
&& apt-get install apt-transport-https \
|
|
|
|
&& echo deb https://apt.buildkite.com/buildkite-agent stable main > /etc/apt/sources.list.d/buildkite-agent.list \
|
|
|
|
&& echo deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main > /etc/apt/sources.list.d/llvm.list \
|
|
|
|
&& apt-key adv --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 32A37959C2FA5C3C99EFBC32A79206696452D198 \
|
|
|
|
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
|
|
|
|
&& apt update \
|
|
|
|
&& apt install -y \
|
2018-07-30 15:56:49 -07:00
|
|
|
buildkite-agent \
|
2018-11-12 19:36:36 -08:00
|
|
|
clang-7 \
|
2018-08-19 08:38:22 -07:00
|
|
|
cmake \
|
2018-10-05 10:17:35 -07:00
|
|
|
lcov \
|
2018-09-28 16:21:34 -06:00
|
|
|
libclang-common-7-dev \
|
2018-09-28 17:20:57 -06:00
|
|
|
llvm-7 \
|
2019-03-15 20:44:35 -07:00
|
|
|
mscgen \
|
2018-07-30 15:56:49 -07:00
|
|
|
rsync \
|
|
|
|
sudo \
|
2018-12-18 09:56:43 -08:00
|
|
|
\
|
2019-05-02 13:16:21 -07:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2018-12-18 09:56:43 -08:00
|
|
|
&& rustup component add rustfmt \
|
|
|
|
&& rustup component add clippy \
|
2019-05-02 13:16:21 -07:00
|
|
|
&& cargo install cargo-audit \
|
2018-12-18 09:56:43 -08:00
|
|
|
&& rustc --version \
|
|
|
|
&& cargo --version
|