From ec0297fd231f2532189e3dab5af331c302822fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Thu, 3 Dec 2026 18:27:21 +0100 Subject: [PATCH] fix(dev): take Go toolchain from pinned golang image The native build pinned golang-1.26.10-1.el10_2, which is no longer available in the Rocky Linux 10 repositories, so make dev-native-build and make dev-up failed. Copy Go 1.26.11 from the official golang image, pinned by digest, and set GOTOOLCHAIN=local so the build does not download another toolchain. Co-Authored-By: Claude Opus 5.5 --- dev/Dockerfile.native | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/Dockerfile.native b/dev/Dockerfile.native index 47fcbf9..f723564 100644 --- a/dev/Dockerfile.native +++ b/dev/Dockerfile.native @@ -1,6 +1,13 @@ ARG CEPH_IMAGE=quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d +# Go toolchain 1.26.11 from the official image, pinned by digest: distribution +# RPM pins disappear from the repositories when updates are published. +ARG GO_IMAGE=golang:1.26.11@sha256:dd1390438221f8eeb6ac8d2c298a22a55a7212a09d2e66bee100f6103e036d62 +FROM ${GO_IMAGE} AS go + FROM ${CEPH_IMAGE} AS build -RUN dnf install -y gcc golang-1.26.10-1.el10_2 \ +COPY --from=go /usr/local/go /usr/local/go +ENV PATH=/usr/local/go/bin:$PATH GOTOOLCHAIN=local +RUN dnf install -y gcc \ https://download.ceph.com/rpm-21.2.0/el10/x86_64/libcephfs-devel-21.2.0-0.el10.x86_64.rpm \ https://download.ceph.com/rpm-21.2.0/el10/x86_64/libcephfs-proxy2-21.2.0-0.el10.x86_64.rpm \ https://download.ceph.com/rpm-21.2.0/el10/x86_64/librados-devel-21.2.0-0.el10.x86_64.rpm \