Shrink the CI image
Replace texlive-full with the texlive packages the paper actually needs (latexmk, latex-extra, pictures for TikZ, bibtex-extra, recommended fonts), and use Ubuntu's valgrind instead of building 3.22 from source - the distro version is newer now. Cuts the image by several GB and removes the slowest step of the image build.
This commit is contained in:
+6
-15
@@ -16,6 +16,7 @@ RUN TZ=America/Los_Angeles DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
devscripts \
|
devscripts \
|
||||||
gcovr \
|
gcovr \
|
||||||
git \
|
git \
|
||||||
|
latexmk \
|
||||||
libc6-dbg \
|
libc6-dbg \
|
||||||
llvm \
|
llvm \
|
||||||
mold \
|
mold \
|
||||||
@@ -23,7 +24,11 @@ RUN TZ=America/Los_Angeles DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
pre-commit \
|
pre-commit \
|
||||||
python3-requests \
|
python3-requests \
|
||||||
rpm \
|
rpm \
|
||||||
texlive-full \
|
texlive-bibtex-extra \
|
||||||
|
texlive-fonts-recommended \
|
||||||
|
texlive-latex-extra \
|
||||||
|
texlive-pictures \
|
||||||
|
valgrind \
|
||||||
wget \
|
wget \
|
||||||
zstd
|
zstd
|
||||||
|
|
||||||
@@ -31,20 +36,6 @@ RUN TZ=America/Los_Angeles DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
RUN curl -Ls "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc" \
|
RUN curl -Ls "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc" \
|
||||||
-o /usr/local/bin/mc && chmod +x /usr/local/bin/mc
|
-o /usr/local/bin/mc && chmod +x /usr/local/bin/mc
|
||||||
|
|
||||||
# Install recent valgrind from source
|
|
||||||
RUN curl -Ls https://sourceware.org/pub/valgrind/valgrind-3.22.0.tar.bz2 -o valgrind.tar.bz2 && \
|
|
||||||
echo "c811db5add2c5f729944caf47c4e7a65dcaabb9461e472b578765dd7bf6d2d4c valgrind.tar.bz2" > valgrind-sha.txt && \
|
|
||||||
sha256sum --quiet -c valgrind-sha.txt && \
|
|
||||||
mkdir valgrind && \
|
|
||||||
tar --strip-components 1 --no-same-owner --no-same-permissions --directory valgrind -xjf valgrind.tar.bz2 && \
|
|
||||||
cd valgrind && \
|
|
||||||
./configure --enable-only64bit --enable-lto && \
|
|
||||||
make -j`nproc` && \
|
|
||||||
make install && \
|
|
||||||
cd .. && \
|
|
||||||
rm -rf /tmp/*
|
|
||||||
|
|
||||||
# Set after building valgrind, which doesn't build with clang for some reason
|
|
||||||
ENV CC=clang
|
ENV CC=clang
|
||||||
ENV CXX=clang++
|
ENV CXX=clang++
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user