From 934bbcba0fd8eb5c654109acf8934c2b62ee12e1 Mon Sep 17 00:00:00 2001 From: Andrey Taranik Date: Wed, 9 Mar 2022 10:13:46 +0300 Subject: [PATCH] revert docker build to debian:buster based rust (#1347) * dockerfile fix, rust cache in docker build flow * check rust cachepot * another check rust cachepot * cleanup * revert docker build to debian:buster based rust to avoid libc6 version mismatch --- Dockerfile | 9 ++++++--- Dockerfile.build | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 Dockerfile.build diff --git a/Dockerfile b/Dockerfile index c568cb27b0..9ee6abaa8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Build Postgres # -FROM zimg/rust:1.56 AS pg-build +#FROM zimg/rust:1.56 AS pg-build +FROM zenithdb/build:buster-20220309 AS pg-build WORKDIR /pg USER root @@ -16,13 +17,15 @@ RUN set -e \ # Build zenith binaries # -FROM zimg/rust:1.56 AS build +#FROM zimg/rust:1.56 AS build +FROM zenithdb/build:buster-20220309 AS build ARG GIT_VERSION=local ARG CACHEPOT_BUCKET=zenith-rust-cachepot ARG AWS_ACCESS_KEY_ID ARG AWS_SECRET_ACCESS_KEY -ENV RUSTC_WRAPPER cachepot +#ENV RUSTC_WRAPPER cachepot +ENV RUSTC_WRAPPER /usr/local/cargo/bin/cachepot COPY --from=pg-build /pg/tmp_install/include/postgresql/server tmp_install/include/postgresql/server COPY . . diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000000..44a2aaafb9 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,23 @@ +FROM rust:1.56.1-slim-buster +WORKDIR /home/circleci/project + +RUN set -e \ + && apt-get update \ + && apt-get -yq install \ + automake \ + libtool \ + build-essential \ + bison \ + flex \ + libreadline-dev \ + zlib1g-dev \ + libxml2-dev \ + libseccomp-dev \ + pkg-config \ + libssl-dev \ + clang + +RUN set -e \ + && rustup component add clippy \ + && cargo install cargo-audit \ + && cargo install --git https://github.com/paritytech/cachepot