Skip to content

Commit

Permalink
test: fix util image (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr authored Sep 6, 2024
1 parent 7c50ad0 commit d9580f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openshift/ci-operator/knative-images/func-util/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DO NOT EDIT! Generated Dockerfile for cmd/func-util.
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.22-openshift-4.17
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal

FROM $GO_BUILDER as builder
Expand All @@ -9,22 +9,22 @@ COPY . .
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=strictfipsruntime

RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/func-util
RUN GOFLAGS='' go build -tags strictfipsruntime,exclude_graphdriver_btrfs -o /usr/bin/main ./cmd/func-util

FROM $GO_RUNTIME

ARG VERSION=knative-nightly

RUN microdnf install tzdata socat tar

USER 65532

COPY --from=builder /usr/bin/main /usr/bin/func-util

RUN ln -s /usr/bin/func-util /usr/local/bin/deploy && \
ln -s /usr/bin/func-util /usr/local/bin/scaffold && \
ln -s /usr/bin/func-util /usr/local/bin/s2i

USER 65532

LABEL \
com.redhat.component="openshift-serverless-1-kn-plugin-func-func-util-rhel8-container" \
name="openshift-serverless-1/kn-plugin-func-func-util-rhel8" \
Expand Down

0 comments on commit d9580f7

Please sign in to comment.