0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 00:02:34 +01:00

docker: Improve style and formatting.

This commit is contained in:
Jason Volk 2022-07-04 13:43:41 -07:00
parent 079e273355
commit 05ea5525be
13 changed files with 97 additions and 71 deletions

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CC clang-10
ENV CXX clang++-10
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-10 llvm-10-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-10 llvm-10-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CC clang-11
ENV CXX clang++-11
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-11 llvm-11-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-11 llvm-11-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CC clang-12
ENV CXX clang++-12
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-12 llvm-12-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-12 llvm-12-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CC clang-13
ENV CXX clang++-13
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-13 llvm-13-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-13 llvm-13-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CC clang-14
ENV CXX clang++-14
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-14 llvm-14-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-14 llvm-14-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,7 +3,9 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CXX g++-10
ENV CC gcc-10
RUN apt-get update \
&& apt-get install --no-install-recommends -y g++-10 gcc-10 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y g++-10 gcc-10 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,7 +3,9 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CXX g++-11
ENV CC gcc-11
RUN apt-get update \
&& apt-get install --no-install-recommends -y g++-11 gcc-11 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y g++-11 gcc-11 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,7 +3,9 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CXX g++-12
ENV CC gcc-12
RUN apt-get update \
&& apt-get install --no-install-recommends -y g++-12 gcc-12 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y g++-12 gcc-12 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,7 +3,9 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CXX g++-8
ENV CC gcc-8
RUN apt-get update \
&& apt-get install --no-install-recommends -y g++-8 gcc-8 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y g++-8 gcc-8 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -3,7 +3,9 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV CXX g++-9
ENV CC gcc-9
RUN apt-get update \
&& apt-get install --no-install-recommends -y g++-9 gcc-9 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y g++-9 gcc-9 \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -2,9 +2,9 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install --no-install-recommends -y \
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
autoconf \
autoconf-archive \
autoconf2.13 \
@ -24,25 +24,27 @@ RUN \
libtool \
libzstd-dev \
shtool \
xz-utils && \
update-ca-certificates && \
apt-get clean && \
apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/*
xz-utils \
&& update-ca-certificates \
&& apt-get clean \
&& apt-get autoremove --purge -y \
&& rm -rf /var/lib/apt/lists/* \
&& true
ENV ROCKSDB_VERSION=6.11.4
ARG skiprocks
RUN \
if test -n "$skiprocks"; then \
RUN true \
&& if test -n "$skiprocks"; then \
exit 0; \
fi && \
cd /usr/src && \
curl -sL https://codeload.github.com/facebook/rocksdb/tar.gz/refs/tags/v${ROCKSDB_VERSION} -o rocksdb-${ROCKSDB_VERSION}.tar.gz && \
tar xfvz rocksdb-${ROCKSDB_VERSION}.tar.gz && \
rm rocksdb-${ROCKSDB_VERSION}.tar.gz && \
ln -s /usr/src/rocksdb-${ROCKSDB_VERSION} /usr/src/rocksdb && \
cd /usr/src/rocksdb-${ROCKSDB_VERSION} && \
fi \
&& cd /usr/src \
&& curl -sL https://codeload.github.com/facebook/rocksdb/tar.gz/refs/tags/v${ROCKSDB_VERSION} -o rocksdb-${ROCKSDB_VERSION}.tar.gz \
&& tar xfvz rocksdb-${ROCKSDB_VERSION}.tar.gz \
&& rm rocksdb-${ROCKSDB_VERSION}.tar.gz \
&& ln -s /usr/src/rocksdb-${ROCKSDB_VERSION} /usr/src/rocksdb \
&& cd /usr/src/rocksdb-${ROCKSDB_VERSION} \
&& \
CFLAGS="-g0" \
LDFLAGS="-Wl,--strip-all" \
cmake -H. -Bbuild \
@ -59,9 +61,10 @@ RUN \
-DWITH_LZ4=1 \
-DWITH_ZSTD=1 \
-DUSE_RTTI=1 \
-DBUILD_SHARED_LIBS=1 && \
cmake --build build --target install && \
rm -rf build
-DBUILD_SHARED_LIBS=1 \
&& cmake --build build --target install \
&& rm -rf build \
&& true
RUN mkdir /build
WORKDIR /build

View file

@ -3,8 +3,10 @@ FROM jevolk/construct:ubuntu-22.04-full
ENV CC clang-14
ENV CXX clang++-14
RUN apt-get update \
&& apt-get install --no-install-recommends -y clang-14 llvm-14-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y clang-14 llvm-14-dev \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& true

View file

@ -2,15 +2,16 @@ FROM jevolk/construct:ubuntu-22.04-base
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install --no-install-recommends -y \
RUN true \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
opencl-headers \
libgraphicsmagick1-dev \
libicu-dev \
libjemalloc-dev \
libopencl-clang-dev \
libpng-dev && \
apt-get clean && \
apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/*
libpng-dev \
&& apt-get clean \
&& apt-get autoremove --purge -y \
&& rm -rf /var/lib/apt/lists/* \
&& true