Skip to content

Commit 3ff896f

Browse files
add RHTAP dockerfile, build go 1.21 ubi9 image (stolostron#45)
Signed-off-by: Subbarao Meduri <[email protected]>
1 parent a6312a9 commit 3ff896f

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

Containerfile.operator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright Contributors to the Open Cluster Management project
22
# Licensed under the Apache License 2.0
33

4-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS builder
4+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21 AS builder
55

66
WORKDIR /workspace
77
COPY . .
88

99
RUN GOOS=linux GOFLAGS="" GOARCH=amd64 CGO_ENABLED=1 go build -o operator cmd/operator/main.go
1010

11-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
11+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1212

1313
COPY --from=builder /workspace/operator /bin/operator
1414

Dockerfile.prow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY . .
77

88
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o operator cmd/operator/main.go
99

10-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
10+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1111

1212
COPY --from=builder /workspace/operator /bin/operator
1313

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright Contributors to the Open Cluster Management project
2+
# Licensed under the Apache License 2.0
3+
4+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21 AS builder
5+
6+
WORKDIR /workspace
7+
COPY . .
8+
9+
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o prometheus-config-reloader cmd/prometheus-config-reloader/main.go
10+
11+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
12+
13+
COPY --from=builder /workspace/prometheus-config-reloader /bin/prometheus-config-reloader
14+
15+
USER nobody
16+
17+
ENTRYPOINT ["/bin/prometheus-config-reloader"]

cmd/prometheus-config-reloader/Dockerfile.prow

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright Contributors to the Open Cluster Management project
2+
# Licensed under the Apache License 2.0
23

34
FROM registry.ci.openshift.org/stolostron/builder:go1.21-linux AS builder
45

@@ -7,7 +8,7 @@ COPY . .
78

89
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o prometheus-config-reloader cmd/prometheus-config-reloader/main.go
910

10-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
11+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1112

1213
COPY --from=builder /workspace/prometheus-config-reloader /bin/prometheus-config-reloader
1314

0 commit comments

Comments
 (0)