Skip to content

Commit 28a70dc

Browse files
committed
📼 Images generated
1 parent e20a44d commit 28a70dc

File tree

5 files changed

+131
-16
lines changed

5 files changed

+131
-16
lines changed

openshift/ci-operator/build-image/Dockerfile

100644100755
Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
ARG OCP_VERSION=4.16
2-
ARG GOLANG_VERSION=1.21
3-
ARG RHEL_VERSION=8
4-
FROM registry.ci.openshift.org/openshift/release:rhel-${RHEL_VERSION}-release-golang-${GOLANG_VERSION}-openshift-${OCP_VERSION}
5-
ARG OCP_VERSION
6-
7-
# Install the oc and kubectl clients
8-
RUN curl -LO https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp-dev-preview/candidate-${OCP_VERSION}/openshift-client-linux.tar.gz \
9-
&& tar -xzf openshift-client-linux.tar.gz \
10-
&& chmod +x oc kubectl \
11-
&& mv oc kubectl /usr/local/bin/
12-
13-
# Reset the goflags to avoid the -mod=vendor flag
14-
ENV GOFLAGS=''
1+
# DO NOT EDIT! Generated Dockerfile.
2+
3+
FROM registry.ci.openshift.org/ocp/4.17:cli-artifacts as tools
4+
5+
# Dockerfile to bootstrap build and test in openshift-ci
6+
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.21-openshift-4.16 as builder
7+
8+
ARG TARGETARCH
9+
10+
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel8 /usr/bin/oc
11+
12+
RUN ln -s /usr/bin/oc /usr/bin/kubectl
13+
14+
RUN yum install -y httpd-tools
15+
16+
RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
17+
chmod 700 ./get-helm-3
18+
19+
RUN ./get-helm-3 --version v3.11.3 --no-sudo && helm version
20+
21+
RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest
22+
RUN GOFLAGS='' go install -tags="exclude_graphdriver_btrfs containers_image_openpgp" github.com/containers/skopeo/cmd/[email protected]
23+
24+
# go install creates $GOPATH/.cache with root permissions, we delete it here
25+
# to avoid permission issues with the runtime users
26+
RUN rm -rf $GOPATH/.cache

openshift/ci-operator/images/kn-event-sender/Dockerfile

100644100755
Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
1-
FROM base
2-
ADD kn-event-sender /usr/bin/kn-event-sender
1+
# DO NOT EDIT! Generated Dockerfile for cmd/kn-event-sender.
2+
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.21-openshift-4.16
3+
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
4+
5+
FROM $GO_BUILDER as builder
6+
7+
WORKDIR /workspace
8+
COPY . .
9+
10+
ENV CGO_ENABLED=1
11+
ENV GOEXPERIMENT=strictfipsruntime
12+
ENV GOFLAGS=''
13+
14+
RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/kn-event-sender
15+
16+
FROM $GO_RUNTIME
17+
18+
ARG VERSION=knative-v1.13
19+
20+
COPY --from=builder /usr/bin/main /usr/bin/kn-event-sender
21+
COPY LICENSE /licenses/
22+
323
USER 65532
24+
25+
LABEL \
26+
com.redhat.component="openshift-serverless-1-kn-plugin-event-kn-event-sender-rhel8-container" \
27+
name="openshift-serverless-1/kn-plugin-event-kn-event-sender-rhel8" \
28+
version=$VERSION \
29+
summary="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event Sender" \
30+
maintainer="[email protected]" \
31+
description="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event Sender" \
32+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event Sender" \
33+
io.k8s.description="Red Hat OpenShift Serverless Kn Plugin Event Kn Event Sender" \
34+
io.openshift.tags="kn-event-sender"
35+
436
ENTRYPOINT ["/usr/bin/kn-event-sender"]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# DO NOT EDIT! Generated Dockerfile for cmd/kn-event.
2+
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.21-openshift-4.16
3+
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
4+
5+
FROM $GO_BUILDER as builder
6+
7+
WORKDIR /workspace
8+
COPY . .
9+
10+
ENV CGO_ENABLED=1
11+
ENV GOEXPERIMENT=strictfipsruntime
12+
ENV GOFLAGS=''
13+
14+
RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/kn-event
15+
16+
FROM $GO_RUNTIME
17+
18+
ARG VERSION=knative-v1.13
19+
20+
COPY --from=builder /usr/bin/main /usr/bin/kn-event
21+
COPY LICENSE /licenses/
22+
23+
USER 65532
24+
25+
LABEL \
26+
com.redhat.component="openshift-serverless-1-kn-plugin-event-kn-event-rhel8-container" \
27+
name="openshift-serverless-1/kn-plugin-event-kn-event-rhel8" \
28+
version=$VERSION \
29+
summary="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event" \
30+
maintainer="[email protected]" \
31+
description="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event" \
32+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Kn Plugin Event Kn Event" \
33+
io.k8s.description="Red Hat OpenShift Serverless Kn Plugin Event Kn Event" \
34+
io.openshift.tags="kn-event"
35+
36+
ENTRYPOINT ["/usr/bin/kn-event"]

openshift/ci-operator/source-image/Dockerfile

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
# DO NOT EDIT! Generated Dockerfile.
2+
13
FROM src
4+
5+
RUN chmod +x vendor/k8s.io/code-generator/generate-groups.sh || true
6+
RUN chmod +x vendor/knative.dev/pkg/hack/generate-knative.sh || true
7+
RUN chmod +x vendor/k8s.io/code-generator/generate-internal-groups.sh || true

openshift/images.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
knative.dev/eventing/cmd/apiserver_receive_adapter: registry.ci.openshift.org/openshift/knative-eventing-apiserver-receive-adapter:knative-v1.13
2+
knative.dev/eventing/cmd/appender: registry.ci.openshift.org/openshift/knative-eventing-appender:knative-v1.13
3+
knative.dev/eventing/cmd/broker/filter: registry.ci.openshift.org/openshift/knative-eventing-filter:knative-v1.13
4+
knative.dev/eventing/cmd/broker/ingress: registry.ci.openshift.org/openshift/knative-eventing-ingress:knative-v1.13
5+
knative.dev/eventing/cmd/controller: registry.ci.openshift.org/openshift/knative-eventing-controller:knative-v1.13
6+
knative.dev/eventing/cmd/event_display: registry.ci.openshift.org/openshift/knative-eventing-event-display:knative-v1.13
7+
knative.dev/eventing/cmd/heartbeats: registry.ci.openshift.org/openshift/knative-eventing-heartbeats:knative-v1.13
8+
knative.dev/eventing/cmd/heartbeats_receiver: registry.ci.openshift.org/openshift/knative-eventing-heartbeats-receiver:knative-v1.13
9+
knative.dev/eventing/cmd/in_memory/channel_controller: registry.ci.openshift.org/openshift/knative-eventing-channel-controller:knative-v1.13
10+
knative.dev/eventing/cmd/in_memory/channel_dispatcher: registry.ci.openshift.org/openshift/knative-eventing-channel-dispatcher:knative-v1.13
11+
knative.dev/eventing/cmd/mtchannel_broker: registry.ci.openshift.org/openshift/knative-eventing-mtchannel-broker:knative-v1.13
12+
knative.dev/eventing/cmd/mtping: registry.ci.openshift.org/openshift/knative-eventing-mtping:knative-v1.13
13+
knative.dev/eventing/cmd/pong: registry.ci.openshift.org/openshift/knative-eventing-pong:knative-v1.13
14+
knative.dev/eventing/cmd/schema: registry.ci.openshift.org/openshift/knative-eventing-schema:knative-v1.13
15+
knative.dev/eventing/cmd/webhook: registry.ci.openshift.org/openshift/knative-eventing-webhook:knative-v1.13
16+
knative.dev/eventing/cmd/websocketsource: registry.ci.openshift.org/openshift/knative-eventing-websocketsource:knative-v1.13
17+
knative.dev/eventing/test/test_images/event-sender: registry.ci.openshift.org/openshift/knative-eventing-test-event-sender:knative-v1.13
18+
knative.dev/eventing/test/test_images/performance: registry.ci.openshift.org/openshift/knative-eventing-test-performance:knative-v1.13
19+
knative.dev/eventing/test/test_images/print: registry.ci.openshift.org/openshift/knative-eventing-test-print:knative-v1.13
20+
knative.dev/eventing/test/test_images/recordevents: registry.ci.openshift.org/openshift/knative-eventing-test-recordevents:knative-v1.13
21+
knative.dev/eventing/test/test_images/request-sender: registry.ci.openshift.org/openshift/knative-eventing-test-request-sender:knative-v1.13
22+
knative.dev/eventing/test/test_images/wathola-fetcher: registry.ci.openshift.org/openshift/knative-eventing-test-wathola-fetcher:knative-v1.13
23+
knative.dev/eventing/test/test_images/wathola-forwarder: registry.ci.openshift.org/openshift/knative-eventing-test-wathola-forwarder:knative-v1.13
24+
knative.dev/eventing/test/test_images/wathola-receiver: registry.ci.openshift.org/openshift/knative-eventing-test-wathola-receiver:knative-v1.13
25+
knative.dev/eventing/test/test_images/wathola-sender: registry.ci.openshift.org/openshift/knative-eventing-test-wathola-sender:knative-v1.13
26+
knative.dev/kn-plugin-event/cmd/kn-event: registry.ci.openshift.org/openshift/kn-plugin-event-kn-event:knative-v1.13
27+
knative.dev/kn-plugin-event/cmd/kn-event-sender: registry.ci.openshift.org/openshift/kn-plugin-event-kn-event-sender:knative-v1.13
28+
knative.dev/pkg/apiextensions/storageversion/cmd/migrate: registry.ci.openshift.org/openshift/knative-eventing-migrate:knative-v1.13
29+
knative.dev/reconciler-test/cmd/eventshub: registry.ci.openshift.org/openshift/knative-eventing-test-eventshub:knative-v1.13

0 commit comments

Comments
 (0)