Skip to content

Commit 6e97231

Browse files
committed
📂 Update OpenShift specific files
1 parent ad691f7 commit 6e97231

File tree

28 files changed

+1044
-8
lines changed

28 files changed

+1044
-8
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
generated-files:
2+
./openshift/generate.sh
3+
.PHONY: generated-files

OWNERS

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
# The OWNERS file is used by prow to automatically merge approved PRs.
2+
3+
# DO NOT EDIT! File generated via https://github.com/openshift-knative/hack/tree/main/config.
4+
15
approvers:
2-
- technical-oversight-committee
3-
- knative-release-leads
4-
- eventing-wg-leads
5-
- eventing-writers
6+
- aliok
7+
- Cali0707
8+
- creydr
9+
- Kaustubh-pande
10+
- lberk
11+
- matzew
12+
- rudyredhat1
13+
- twoGiants
614

7-
# Reviewers are suggested from the reviewers list first, then the approvers
8-
# list. To add reviewers while spreading the load among existing approvers,
9-
# copy the approvers to the reviewers list too.
1015
reviewers:
11-
# TODO: fill in the owning WG
16+
- aliok
17+
- Cali0707
18+
- creydr
19+
- lberk
20+
- matzew
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DO NOT EDIT! Generated Dockerfile.
2+
3+
FROM registry.ci.openshift.org/ocp/4.19:cli-artifacts as tools
4+
5+
# Dockerfile to bootstrap build and test in openshift-ci
6+
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.21 as builder
7+
8+
ARG TARGETARCH
9+
10+
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel9 /usr/bin/oc
11+
12+
RUN ln -s /usr/bin/oc /usr/bin/kubectl
13+
14+
RUN dnf 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/skopeo@v1.17.0
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
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# DO NOT EDIT! Generated Dockerfile.
2+
3+
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
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM registry.access.redhat.com/ubi8/openjdk-21 as builder
2+
3+
WORKDIR /build
4+
USER root
5+
6+
COPY pom.xml .
7+
COPY aws-ddb-streams-source/pom.xml aws-ddb-streams-source/pom.xml
8+
COPY aws-eventbridge-sink/pom.xml aws-eventbridge-sink/pom.xml
9+
COPY aws-s3-sink/pom.xml aws-s3-sink/pom.xml
10+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
11+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
12+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
13+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
14+
COPY log-sink/pom.xml log-sink/pom.xml
15+
COPY jsonata-transformer/pom.xml jsonata-transformer/pom.xml
16+
COPY timer-source/pom.xml timer-source/pom.xml
17+
COPY tools/ tools/
18+
19+
RUN mvn install -am -DskipTests -Drelease -Dlicense.skip -Deditorconfig.skip --no-transfer-progress
20+
21+
COPY . .
22+
23+
RUN mvn package -pl=aws-ddb-streams-source -Drelease -am -DskipTests -Deditorconfig.skip --no-transfer-progress
24+
25+
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime as running
26+
27+
USER 185
28+
29+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/lib/ /deployments/lib/
30+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/*.jar /deployments/
31+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/app/ /deployments/app/
32+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/quarkus/ /deployments/quarkus/
33+
34+
COPY LICENSE /licenses/
35+
36+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
37+
38+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#
2+
# Copyright © 2018 Knative Authors (knative-dev@googlegroups.com)
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
ARG JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
18+
ARG JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
19+
20+
FROM $JAVA_BUILDER AS builder
21+
22+
USER root
23+
24+
WORKDIR /build
25+
26+
COPY . .
27+
28+
RUN mvn package -pl=aws-ddb-streams-source -Drelease -am -DskipTests --no-transfer-progress
29+
30+
FROM $JAVA_RUNTIME AS running
31+
ARG VERSION=""
32+
33+
USER 185
34+
35+
LABEL \
36+
com.redhat.component="openshift-serverless-1-eventing-integrations-aws-ddb-streams-source-rhel8-container" \
37+
name="openshift-serverless-1/eventing-integrations-aws-ddb-streams-source-rhel8" \
38+
version=$VERSION \
39+
release=$VERSION \
40+
summary="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
41+
maintainer="serverless-support@redhat.com" \
42+
description="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
43+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
44+
io.k8s.description="Red Hat OpenShift Serverless Eventing Integrations AWS DynamoDB Streams Source" \
45+
io.openshift.tags=aws-ddb-streams-source \
46+
vendor="Red Hat, Inc." \
47+
cpe="cpe:/a:redhat:openshift_serverless:0.0::el0"
48+
49+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/lib/ /deployments/lib/
50+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/*.jar /deployments/
51+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/app/ /deployments/app/
52+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/quarkus/ /deployments/quarkus/
53+
54+
COPY LICENSE /licenses/
55+
56+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
57+
58+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM registry.access.redhat.com/ubi8/openjdk-21 as builder
2+
3+
WORKDIR /build
4+
5+
USER root
6+
7+
COPY pom.xml .
8+
COPY aws-ddb-streams-source/pom.xml aws-ddb-streams-source/pom.xml
9+
COPY aws-eventbridge-sink/pom.xml aws-eventbridge-sink/pom.xml
10+
COPY aws-s3-sink/pom.xml aws-s3-sink/pom.xml
11+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
12+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
13+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
14+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
15+
COPY log-sink/pom.xml log-sink/pom.xml
16+
COPY jsonata-transformer/pom.xml jsonata-transformer/pom.xml
17+
COPY timer-source/pom.xml timer-source/pom.xml
18+
COPY tools/ tools/
19+
20+
RUN mvn install -am -DskipTests -Drelease -Dlicense.skip -Deditorconfig.skip --no-transfer-progress
21+
22+
COPY . .
23+
24+
RUN mvn package -pl=aws-s3-sink -Drelease -am -DskipTests -Deditorconfig.skip --no-transfer-progress
25+
26+
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime as running
27+
28+
USER 185
29+
30+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/lib/ /deployments/lib/
31+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/*.jar /deployments/
32+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/app/ /deployments/app/
33+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/quarkus/ /deployments/quarkus/
34+
35+
COPY LICENSE /licenses/
36+
37+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
38+
39+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#
2+
# Copyright © 2018 Knative Authors (knative-dev@googlegroups.com)
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
ARG JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
18+
ARG JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
19+
20+
FROM $JAVA_BUILDER AS builder
21+
22+
USER root
23+
24+
WORKDIR /build
25+
26+
COPY . .
27+
28+
RUN mvn package -pl=aws-s3-sink -Drelease -am -DskipTests --no-transfer-progress
29+
30+
FROM $JAVA_RUNTIME AS running
31+
ARG VERSION=""
32+
33+
USER 185
34+
35+
LABEL \
36+
com.redhat.component="openshift-serverless-1-eventing-integrations-aws-s3-sink-rhel8-container" \
37+
name="openshift-serverless-1/eventing-integrations-aws-s3-sink-rhel8" \
38+
version=$VERSION \
39+
release=$VERSION \
40+
summary="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
41+
maintainer="serverless-support@redhat.com" \
42+
description="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
43+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
44+
io.k8s.description="Red Hat OpenShift Serverless Eventing Integrations AWS S3 Sink" \
45+
io.openshift.tags=aws-s3-sink \
46+
vendor="Red Hat, Inc." \
47+
cpe="cpe:/a:redhat:openshift_serverless:0.0::el0"
48+
49+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/lib/ /deployments/lib/
50+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/*.jar /deployments/
51+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/app/ /deployments/app/
52+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/quarkus/ /deployments/quarkus/
53+
54+
COPY LICENSE /licenses/
55+
56+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
57+
58+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM registry.access.redhat.com/ubi8/openjdk-21 as builder
2+
3+
WORKDIR /build
4+
5+
USER root
6+
7+
COPY pom.xml .
8+
COPY aws-ddb-streams-source/pom.xml aws-ddb-streams-source/pom.xml
9+
COPY aws-eventbridge-sink/pom.xml aws-eventbridge-sink/pom.xml
10+
COPY aws-s3-sink/pom.xml aws-s3-sink/pom.xml
11+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
12+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
13+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
14+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
15+
COPY log-sink/pom.xml log-sink/pom.xml
16+
COPY jsonata-transformer/pom.xml jsonata-transformer/pom.xml
17+
COPY timer-source/pom.xml timer-source/pom.xml
18+
COPY tools/ tools/
19+
20+
RUN mvn install -am -DskipTests -Drelease -Dlicense.skip -Deditorconfig.skip --no-transfer-progress
21+
22+
COPY . .
23+
24+
RUN mvn package -pl=aws-s3-source -Drelease -am -DskipTests -Deditorconfig.skip --no-transfer-progress
25+
26+
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime as running
27+
28+
USER 185
29+
30+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/lib/ /deployments/lib/
31+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/*.jar /deployments/
32+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/app/ /deployments/app/
33+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/quarkus/ /deployments/quarkus/
34+
35+
COPY LICENSE /licenses/
36+
37+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
38+
39+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#
2+
# Copyright © 2018 Knative Authors (knative-dev@googlegroups.com)
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
ARG JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
18+
ARG JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
19+
20+
FROM $JAVA_BUILDER AS builder
21+
22+
USER root
23+
24+
WORKDIR /build
25+
26+
COPY . .
27+
28+
RUN mvn package -pl=aws-s3-source -Drelease -am -DskipTests --no-transfer-progress
29+
30+
FROM $JAVA_RUNTIME AS running
31+
ARG VERSION=""
32+
33+
USER 185
34+
35+
LABEL \
36+
com.redhat.component="openshift-serverless-1-eventing-integrations-aws-s3-source-rhel8-container" \
37+
name="openshift-serverless-1/eventing-integrations-aws-s3-source-rhel8" \
38+
version=$VERSION \
39+
release=$VERSION \
40+
summary="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Source" \
41+
maintainer="serverless-support@redhat.com" \
42+
description="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Source" \
43+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Source" \
44+
io.k8s.description="Red Hat OpenShift Serverless Eventing Integrations AWS S3 Source" \
45+
io.openshift.tags=aws-s3-source \
46+
vendor="Red Hat, Inc." \
47+
cpe="cpe:/a:redhat:openshift_serverless:0.0::el0"
48+
49+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/lib/ /deployments/lib/
50+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/*.jar /deployments/
51+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/app/ /deployments/app/
52+
COPY --from=builder --chown=185 /build/aws-s3-source/target/quarkus-app/quarkus/ /deployments/quarkus/
53+
54+
COPY LICENSE /licenses/
55+
56+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
57+
58+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]

0 commit comments

Comments
 (0)