File tree Expand file tree Collapse file tree 3 files changed +12
-27
lines changed
ci-operator/knative-images/kn Expand file tree Collapse file tree 3 files changed +12
-27
lines changed Original file line number Diff line number Diff line change 11# DO NOT EDIT! Generated Dockerfile for cmd/kn.
22ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17
33ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
4- ARG IMAGE_KN_PLUGIN_FUNC_UTIL=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:134a07b2ecd8bb485d7f20bf23e863f5cec5620134c4a26b65e31d23c3076175
5- ARG IMAGE_KN_PLUGIN_EVENT_SENDER=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:e2ea8370284a4807712849a0ec8c786bbf7cb6cd78dc2309c14e87470df235e6
64
75FROM $GO_BUILDER as builder
86
@@ -11,9 +9,9 @@ COPY . .
119
1210ENV CGO_ENABLED=1
1311ENV GOEXPERIMENT=strictfipsruntime
14- ENV KN_PLUGIN_FUNC_UTIL_IMAGE=$IMAGE_KN_PLUGIN_FUNC_UTIL
15- ENV KN_PLUGIN_EVENT_SENDER_IMAGE=$IMAGE_KN_PLUGIN_EVENT_SENDER
1612
13+ ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:63fbd304ffb93e5883b987ac90a476cd9ff9946f164ca8acb9c1a95fee84bcb3
14+ ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:1d2a8b786bd09301530d37440ce6501527cfd511ba78d97da5eda952a6558ebe
1715RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/kn
1816
1917FROM $GO_RUNTIME
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,4 +23,13 @@ install_generate_hack_tool || exit 1
2323 --app-file-fmt " /ko-app/%s" \
2424 --dockerfile-image-builder-fmt " registry.ci.openshift.org/openshift/release:rhel-8-release-golang-%s-openshift-4.17"
2525
26- git apply $repo_root_dir /openshift/dockerfile.patch
26+ # git apply $repo_root_dir/openshift/dockerfile.patch
27+ FUNC_UTIL=$( skopeo inspect -n --format ' {{.Digest}}' docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-135/kn-plugin-func-func-util:1.35.0 --override-os linux --override-arch amd64)
28+ EVENT_SENDER=$( skopeo inspect -n --format ' {{.Digest}}' docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-135/kn-plugin-event-sender:1.35.0 --override-os linux --override-arch amd64)
29+
30+ echo " func-util sha: ${FUNC_UTIL} "
31+ echo " event-sender sha: ${EVENT_SENDER} "
32+
33+ sed -i " /RUN go build.*/ i \
34+ ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@${FUNC_UTIL} \n\
35+ ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@${EVENT_SENDER} " openshift/ci-operator/knative-images/kn/Dockerfile
You can’t perform that action at this time.
0 commit comments