From d31b44b2a584ca011599ca49bce64ff0641f8e74 Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Tue, 1 Sep 2026 13:04:00 +0000 Subject: [PATCH] InferUpdate (#4) Reviewed-on: https://git.romainboullard.com/BigfootDev/DockerImages/pulls/4 Co-authored-by: Romain BOULLARD --- Linux/BaseBuilder/Dockerfile | 11 ++--------- Linux/CPPBuilder/Dockerfile | 30 ++++-------------------------- 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/Linux/BaseBuilder/Dockerfile b/Linux/BaseBuilder/Dockerfile index a216dc0..f84790e 100644 --- a/Linux/BaseBuilder/Dockerfile +++ b/Linux/BaseBuilder/Dockerfile @@ -5,19 +5,12 @@ ENV TZ=Europe/Paris \ DEBIAN_FRONTEND=noninteractive \ PATH="/root/.local/bin:$PATH" -# Use build cache for ccache -RUN --mount=type=cache,target=/ccache - -# Dummy sudo (no security weakening) RUN echo '#!/bin/bash\n$@' > /usr/bin/sudo \ && chmod +x /usr/bin/sudo -# Install base dependencies in one layer RUN apt-get update && apt-get install -y \ unzip \ curl \ wget \ - lsb-release \ - software-properties-common \ - gnupg \ - python3 + python3 \ + pipx diff --git a/Linux/CPPBuilder/Dockerfile b/Linux/CPPBuilder/Dockerfile index 84dacff..41cbe2b 100644 --- a/Linux/CPPBuilder/Dockerfile +++ b/Linux/CPPBuilder/Dockerfile @@ -1,22 +1,14 @@ -# Build arguments ARG BASE_BUILDER -# Base image FROM $BASE_BUILDER -# Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ - cppcheck \ - ccache \ - cmake \ - ninja-build \ git \ - pkg-config \ - wget \ lsb-release \ + pkg-config \ software-properties-common \ - pipx + xvfb ENV PATH="/root/.local/bin:${PATH}" @@ -29,7 +21,8 @@ RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \ done \ && rm -f /tmp/llvm.sh* -RUN VERSION=1.2.0; \ +# Install Infer +RUN VERSION=1.3.0; \ curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \ | tar -C /opt -xJ && \ ln -s "/opt/infer-linux-x86_64-v$VERSION/bin/infer" /usr/bin/infer @@ -38,21 +31,6 @@ RUN VERSION=1.2.0; \ RUN pipx install conan \ && pipx install gcovr -# Build and install mold -RUN git clone --branch v2.41.0 https://github.com/rui314/mold.git /tmp/mold \ - && cd /tmp/mold \ - && cmake . -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_CXX_COMPILER=clang++ \ - -B build \ - && cmake --build build -j$(nproc) \ - && cmake --install build \ - && rm -rf /tmp/mold - -# Configure Conan with custom profiles and remote -RUN conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch main" \ - && conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages \ - && conan remote disable conancenter - # Install Vulkan SDK 1.4.341.0 RUN wget -q https://sdk.lunarg.com/sdk/download/1.4.341.0/linux/vulkansdk-linux-x86_64-1.4.341.0.tar.xz \ -O /tmp/vulkansdk.tar.xz \