Skip to content

Commit d0f3139

Browse files
authored
MGMT-18313: Replace golang base image as it is based on Centos Linux 7 (#122)
1 parent 2898281 commit d0f3139

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Build the manager binary
2-
FROM registry.ci.openshift.org/openshift/release:golang-1.20 as builder
2+
FROM registry.access.redhat.com/ubi9/go-toolset:1.20 as builder
3+
4+
USER 0
35

46
WORKDIR /workspace
57
COPY . .
68
# Build
79
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
810

9-
FROM registry.ci.openshift.org/ocp/4.14:base
11+
FROM quay-proxy.ci.openshift.org/openshift/ci:ocp_4.16_base-rhel9
12+
1013
WORKDIR /
1114
COPY --from=builder /workspace/manager .
1215
USER 65532:65532

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/cluster-api-provider-agent
22

3-
go 1.18
3+
go 1.20
44

55
// Versions to be held for v1beta1
66
// sigs.k8s.io/controller-runtime on v0.11.x

0 commit comments

Comments
 (0)