2018-09-27 13:42:49 -07: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
|
2018-10-25 16:48:34 -07:00
|
|
|
FROM rust:1.30.0
|
2018-07-30 15:56:49 -07:00
|
|
|
|
2018-08-19 08:49:24 -07:00
|
|
|
RUN set -x && \
|
2018-08-19 08:38:22 -07:00
|
|
|
apt update && \
|
2018-07-30 15:56:49 -07:00
|
|
|
apt-get install apt-transport-https && \
|
|
|
|
echo deb https://apt.buildkite.com/buildkite-agent stable main > /etc/apt/sources.list.d/buildkite-agent.list && \
|
2018-09-28 15:21:34 -07:00
|
|
|
echo deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main > /etc/apt/sources.list.d/llvm.list && \
|
2018-07-30 15:56:49 -07:00
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 32A37959C2FA5C3C99EFBC32A79206696452D198 && \
|
2018-08-19 09:01:36 -07:00
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
|
2018-07-30 15:56:49 -07:00
|
|
|
apt update && \
|
|
|
|
apt install -y \
|
|
|
|
buildkite-agent \
|
2018-08-19 08:38:22 -07:00
|
|
|
cmake \
|
2018-10-05 10:17:35 -07:00
|
|
|
lcov \
|
2018-09-28 15:21:34 -07:00
|
|
|
libclang-common-7-dev \
|
2018-09-28 16:20:57 -07:00
|
|
|
llvm-7 \
|
2018-07-30 15:56:49 -07:00
|
|
|
rsync \
|
|
|
|
sudo \
|
|
|
|
&& \
|
2018-08-03 14:10:09 -07:00
|
|
|
rustup component add rustfmt-preview && \
|
2018-09-27 13:42:49 -07:00
|
|
|
rustup component add clippy-preview && \
|
2018-08-19 08:38:22 -07:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
rustc --version && \
|
|
|
|
cargo --version
|