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 <noreply@anthropic.com>
This commit is contained in:
1 parent
0fce76b7e3
commit
ec0297fd23
1 file changed
+8
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user