From cbbb23bf9d89e9ee62c6759d98c5396e8960747d Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 12 Jun 2026 12:12:10 -0400 Subject: [PATCH] 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. --- Dockerfile | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2de0eca..7f7ba34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN TZ=America/Los_Angeles DEBIAN_FRONTEND=noninteractive apt-get install -y \ devscripts \ gcovr \ git \ + latexmk \ libc6-dbg \ llvm \ mold \ @@ -23,7 +24,11 @@ RUN TZ=America/Los_Angeles DEBIAN_FRONTEND=noninteractive apt-get install -y \ pre-commit \ python3-requests \ rpm \ - texlive-full \ + texlive-bibtex-extra \ + texlive-fonts-recommended \ + texlive-latex-extra \ + texlive-pictures \ + valgrind \ wget \ 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" \ -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 CXX=clang++