From c00f06cb446f3c8d8f25b6d95ca7d2bdfe5e58a5 Mon Sep 17 00:00:00 2001 From: Mukul Sharma Date: Sun, 13 Sep 2026 01:51:50 +0530 Subject: [PATCH] GKE: build from this cluster's registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit demo-go-app is the one demo app that ships its own Dockerfile, and that Dockerfile names the registry — so unlike toolshed, whose source is genuinely cluster-agnostic, this repo cannot serve both clusters from one copy. Both stages now pull from harbor.35.238.248.203.nip.io. Nothing else needed changing. The Jenkinsfile is two lines and resolves whichever devops-lib the Jenkins running it has registered, and config.yaml only exercises the pre/post-build hooks. Both base images it needs, golang:1.22-alpine and alpine:3.20, are present in devops-base-images-gcp's manifest — an unmirrored tag would fail the build rather than quietly falling back to Docker Hub. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01LEsTefWWifp4ikvhHF5s6N --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02a41e7..7161327 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM harbor.192.168.1.7.nip.io/base-images/golang:1.22-alpine AS build +FROM harbor.35.238.248.203.nip.io/base-images/golang:1.22-alpine AS build WORKDIR /src COPY go.mod ./ COPY main.go ./ RUN CGO_ENABLED=0 go build -o /app . -FROM harbor.192.168.1.7.nip.io/base-images/alpine:3.20 +FROM harbor.35.238.248.203.nip.io/base-images/alpine:3.20 COPY --from=build /app /app EXPOSE 8080 ENTRYPOINT ["/app"]