Skip to content

Commit b2297cc

Browse files
author
serverless-qe
committed
Generate dockerfiles with "make generate-release"
1 parent 03891e5 commit b2297cc

File tree

4 files changed

+30
-35
lines changed

4 files changed

+30
-35
lines changed

openshift/ci-operator/build-image/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# DO NOT EDIT! Generated Dockerfile.
22

3-
FROM registry.ci.openshift.org/ocp/4.17:cli-artifacts as tools
3+
FROM registry.ci.openshift.org/ocp/4.19:cli-artifacts as tools
44

55
# Dockerfile to bootstrap build and test in openshift-ci
6-
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.24-openshift-4.20 as builder
6+
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20 as builder
77

88
ARG TARGETARCH
99

10-
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel8 /usr/bin/oc
10+
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel9 /usr/bin/oc
1111

1212
RUN ln -s /usr/bin/oc /usr/bin/kubectl
1313

14-
RUN yum install -y httpd-tools
14+
RUN dnf install -y httpd-tools
1515

1616
RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
1717
chmod 700 ./get-helm-3

openshift/ci-operator/build-image/kubernetes.repo

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DO NOT EDIT! Generated Dockerfile for cmd/kn.
2-
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.24-openshift-4.20
3-
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
2+
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20
3+
ARG GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
44

55
FROM $GO_BUILDER as builder
66

@@ -9,30 +9,31 @@ COPY . .
99

1010
ENV CGO_ENABLED=1
1111
ENV GOEXPERIMENT=strictfipsruntime
12-
ENV GOFLAGS=''
12+
ENV GOFLAGS='-mod=mod'
1313

14-
ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:0ae40d26e834e208d0909b90fb3a37c3feb38a299034b5086f1bec69d6719eb2
15-
ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:58e3ccea5c558575fe4adc6f5f6d570ebec0934de1ba1110bc32fe76fb379c7e
14+
ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:607e50dd3a9b61d57d125c47a7977c40c4f781bfab01a852a08b40fe42f2b893
15+
ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:2d8cfab33f1c46b2d4510ea4b56a09e12b8bcf07c0eb055e84ebc077ec730145
1616
RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/kn
1717

1818
FROM $GO_RUNTIME
1919

20-
ARG VERSION=knative-v1.19
20+
ARG VERSION=
2121

2222
COPY --from=builder /usr/bin/main /ko-app/kn
2323
COPY LICENSE /licenses/
2424

2525
USER 65532
2626

2727
LABEL \
28-
com.redhat.component="openshift-serverless-1-client-kn-rhel8-container" \
29-
name="openshift-serverless-1/client-kn-rhel8" \
28+
com.redhat.component="openshift-serverless-1-kn-rhel9-container" \
29+
name="openshift-serverless-1/kn-rhel9" \
3030
version=$VERSION \
31-
summary="Red Hat OpenShift Serverless 1 Client Kn" \
31+
summary="Red Hat OpenShift Serverless 1 Kn" \
3232
maintainer="[email protected]" \
33-
description="Red Hat OpenShift Serverless 1 Client Kn" \
34-
io.k8s.display-name="Red Hat OpenShift Serverless 1 Client Kn" \
35-
io.k8s.description="Red Hat OpenShift Serverless Client Kn" \
36-
io.openshift.tags="kn"
33+
description="Red Hat OpenShift Serverless 1 Kn" \
34+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Kn" \
35+
io.k8s.description="Red Hat OpenShift Serverless Kn" \
36+
io.openshift.tags="kn" \
37+
cpe="cpe:/a:redhat:openshift_serverless:1.37::el9"
3738

3839
ENTRYPOINT ["/ko-app/kn"]
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DO NOT EDIT! Generated Dockerfile for test/test_images/helloworld.
2-
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.24-openshift-4.20
3-
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
2+
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20
3+
ARG GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
44

55
FROM $GO_BUILDER as builder
66

@@ -9,29 +9,29 @@ COPY . .
99

1010
ENV CGO_ENABLED=1
1111
ENV GOEXPERIMENT=strictfipsruntime
12-
ENV GOFLAGS=''
12+
ENV GOFLAGS='-mod=mod'
1313

14-
RUN GOWORK=off go mod vendor
1514
RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/helloworld
1615

1716
FROM $GO_RUNTIME
1817

19-
ARG VERSION=knative-v1.19
18+
ARG VERSION=
2019

2120
COPY --from=builder /usr/bin/main /ko-app/helloworld
2221
COPY LICENSE /licenses/
2322

2423
USER 65532
2524

2625
LABEL \
27-
com.redhat.component="openshift-serverless-1-client-test-test-images-helloworld-rhel8-container" \
28-
name="openshift-serverless-1/client-test-test-images-helloworld-rhel8" \
26+
com.redhat.component="openshift-serverless-1-test-test-images-helloworld-rhel9-container" \
27+
name="openshift-serverless-1/test-test-images-helloworld-rhel9" \
2928
version=$VERSION \
30-
summary="Red Hat OpenShift Serverless 1 Client Test Test Images Helloworld" \
29+
summary="Red Hat OpenShift Serverless 1 Test Test Images Helloworld" \
3130
maintainer="[email protected]" \
32-
description="Red Hat OpenShift Serverless 1 Client Test Test Images Helloworld" \
33-
io.k8s.display-name="Red Hat OpenShift Serverless 1 Client Test Test Images Helloworld" \
34-
io.k8s.description="Red Hat OpenShift Serverless Client Test Test Images Helloworld" \
35-
io.openshift.tags="test-test-images-helloworld"
31+
description="Red Hat OpenShift Serverless 1 Test Test Images Helloworld" \
32+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Test Test Images Helloworld" \
33+
io.k8s.description="Red Hat OpenShift Serverless Test Test Images Helloworld" \
34+
io.openshift.tags="test-test-images-helloworld" \
35+
cpe="cpe:/a:redhat:openshift_serverless:1.37::el9"
3636

3737
ENTRYPOINT ["/ko-app/helloworld"]

0 commit comments

Comments
 (0)