diff --git a/Dockerfile b/Dockerfile index b0b1324a5ee..48ed5574858 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ # https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ # First builder (cross-)compile the BPF programs -FROM --platform=$BUILDPLATFORM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f AS bpf-builder +FROM --platform=$BUILDPLATFORM mtardy/clang:18 AS bpf-builder WORKDIR /go/src/github.com/cilium/tetragon RUN apt-get update && apt-get install -y linux-libc-dev COPY . ./ @@ -36,7 +36,7 @@ RUN apk add --no-cache git \ # This builder (cross-)compile a stripped static version of bpftool. # This step was kept because the downloaded version includes LLVM libs with the # disassembler that makes the static binary grow from ~2Mo to ~30Mo. -FROM --platform=$BUILDPLATFORM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f AS bpftool-builder +FROM --platform=$BUILDPLATFORM mtardy/clang:18 AS bpftool-builder WORKDIR /bpftool ARG TARGETARCH BUILDARCH RUN if [ $BUILDARCH != $TARGETARCH ]; \ diff --git a/Dockerfile.dev b/Dockerfile.dev index 06afb513292..7ceffe23892 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f AS bpf-builder +FROM mtardy/clang:18 AS bpf-builder WORKDIR /go/src/github.com/cilium/tetragon RUN apt-get update RUN apt-get install -y linux-libc-dev diff --git a/Dockerfile.test b/Dockerfile.test index dbf18c5a486..67909e48c23 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -1,4 +1,4 @@ -FROM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f AS bpf-builder +FROM mtardy/clang:18 AS bpf-builder WORKDIR /go/src/github.com/cilium/tetragon RUN apt-get update RUN apt-get install -y linux-libc-dev diff --git a/Makefile b/Makefile index dcc94a6df20..cd10dfe1a53 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ LOCAL_CLANG ?= 0 LOCAL_CLANG_FORMAT ?= 0 FORMAT_FIND_FLAGS ?= -name '*.c' -o -name '*.h' -not -path 'bpf/include/vmlinux.h' -not -path 'bpf/include/api.h' -not -path 'bpf/libbpf/*' NOOPT ?= 0 -CLANG_IMAGE = quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f +CLANG_IMAGE = mtardy/clang:18 TESTER_PROGS_DIR = "contrib/tester-progs" # Extra flags to pass to test binary EXTRA_TESTFLAGS ?=