From 71269799500205ccd574d7820406309b2b1665de Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 15 Apr 2022 19:09:41 +0300 Subject: [PATCH] Remove custom neon Docker build image --- Dockerfile | 11 +++-------- Dockerfile.build | 23 ----------------------- Dockerfile.compute-tools | 5 ++--- 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 Dockerfile.build diff --git a/Dockerfile b/Dockerfile index 955d26cd0b..5e579be4e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ # Build Postgres -# -#FROM zimg/rust:1.58 AS pg-build -FROM zenithdb/build:buster-20220414 AS pg-build +FROM zimg/rust:1.58 AS pg-build WORKDIR /pg USER root @@ -16,22 +14,19 @@ RUN set -e \ && tar -C tmp_install -czf /postgres_install.tar.gz . # Build zenith binaries -# -#FROM zimg/rust:1.58 AS build -FROM zenithdb/build:buster-20220414 AS build +FROM zimg/rust:1.58 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 /usr/local/cargo/bin/cachepot COPY --from=pg-build /pg/tmp_install/include/postgresql/server tmp_install/include/postgresql/server COPY . . # Show build caching stats to check if it was used in the end. # Has to be the part of the same RUN since cachepot daemon is killed in the end of this RUN, loosing the compilation stats. -RUN cargo build --release && /usr/local/cargo/bin/cachepot -s +RUN cargo build --release && cachepot -s # Build final image # diff --git a/Dockerfile.build b/Dockerfile.build deleted file mode 100644 index c7d239647f..0000000000 --- a/Dockerfile.build +++ /dev/null @@ -1,23 +0,0 @@ -FROM rust:1.58-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 diff --git a/Dockerfile.compute-tools b/Dockerfile.compute-tools index 6a35a71bb3..a0cc21105b 100644 --- a/Dockerfile.compute-tools +++ b/Dockerfile.compute-tools @@ -1,17 +1,16 @@ # First transient image to build compute_tools binaries # NB: keep in sync with rust image version in .circle/config.yml -FROM zenithdb/build:buster-20220414 AS rust-build +FROM zimg/rust:1.58 AS rust-build WORKDIR /zenith ARG CACHEPOT_BUCKET=zenith-rust-cachepot ARG AWS_ACCESS_KEY_ID ARG AWS_SECRET_ACCESS_KEY -ENV RUSTC_WRAPPER /usr/local/cargo/bin/cachepot COPY . . -RUN cargo build -p compute_tools --release && /usr/local/cargo/bin/cachepot -s +RUN cargo build -p compute_tools --release && cachepot -s # Final image that only has one binary FROM debian:buster-slim