Skip to content

Commit e77c132

Browse files
committed
📂 Update OpenShift specific files
1 parent 6675778 commit e77c132

File tree

36 files changed

+1323
-8
lines changed

36 files changed

+1323
-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: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
# The OWNERS file is used by prow to automatically merge approved PRs.
12
approvers:
2-
- technical-oversight-committee
3-
- knative-release-leads
4-
- eventing-wg-leads
5-
- eventing-writers
3+
- alanfx
4+
- aliok
5+
- creydr
6+
- lberk
7+
- matzew
8+
- mgencur
9+
- pierDipi
610

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.
1011
reviewers:
11-
# TODO: fill in the owning WG
12+
- aliok
13+
- creydr
14+
- lberk
15+
- matzew
16+
- pierDipi
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.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.23-openshift-4.19 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/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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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-s3-sink/pom.xml aws-s3-sink/pom.xml
9+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
10+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
11+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
12+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
13+
COPY log-sink/pom.xml log-sink/pom.xml
14+
COPY timer-source/pom.xml timer-source/pom.xml
15+
COPY tools/ tools/
16+
17+
RUN mvn install -am -DskipTests -Drelease -Dlicense.skip -Deditorconfig.skip --no-transfer-progress
18+
19+
COPY . .
20+
21+
RUN mvn package -pl=aws-ddb-streams-source -Drelease -am -DskipTests -Deditorconfig.skip --no-transfer-progress
22+
23+
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime as running
24+
25+
USER 185
26+
27+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/lib/ /deployments/lib/
28+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/*.jar /deployments/
29+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/app/ /deployments/app/
30+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/quarkus/ /deployments/quarkus/
31+
32+
COPY LICENSE /licenses/
33+
34+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
35+
36+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
ARG DEPS_IMAGE
20+
21+
FROM $DEPS_IMAGE AS deps
22+
23+
FROM $JAVA_BUILDER AS builder
24+
25+
USER root
26+
27+
WORKDIR /build
28+
29+
COPY --from=deps /third_party/maven/ /third_party/maven/
30+
31+
COPY . .
32+
33+
RUN mvn -Dmaven.repo.local=/third_party/maven --offline package -pl=aws-ddb-streams-source -Drelease -am -DskipTests --no-transfer-progress
34+
35+
FROM $JAVA_RUNTIME AS running
36+
ARG VERSION=""
37+
38+
USER 185
39+
40+
LABEL \
41+
com.redhat.component="openshift-serverless-1-eventing-integrations-aws-ddb-streams-source-rhel8-container" \
42+
name="openshift-serverless-1/eventing-integrations-aws-ddb-streams-source-rhel8" \
43+
version=$VERSION \
44+
release=$VERSION \
45+
summary="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
46+
maintainer="serverless-support@redhat.com" \
47+
description="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
48+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Integrations AWS DynamoDB Streams Source" \
49+
io.k8s.description="Red Hat OpenShift Serverless Eventing Integrations AWS DynamoDB Streams Source" \
50+
io.openshift.tags=aws-ddb-streams-source
51+
52+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/lib/ /deployments/lib/
53+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/*.jar /deployments/
54+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/app/ /deployments/app/
55+
COPY --from=builder --chown=185 /build/aws-ddb-streams-source/target/quarkus-app/quarkus/ /deployments/quarkus/
56+
57+
COPY LICENSE /licenses/
58+
59+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
60+
61+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
19+
FROM $JAVA_BUILDER
20+
21+
USER root
22+
23+
WORKDIR /build
24+
25+
COPY pom.xml .
26+
COPY aws-ddb-streams-source/pom.xml aws-ddb-streams-source/pom.xml
27+
COPY aws-s3-sink/pom.xml aws-s3-sink/pom.xml
28+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
29+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
30+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
31+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
32+
COPY log-sink/pom.xml log-sink/pom.xml
33+
COPY timer-source/pom.xml timer-source/pom.xml
34+
COPY tools/ tools/
35+
36+
RUN mvn package dependency:go-offline -Drelease -DskipTests -Dmaven.repo.local=/third_party/maven
37+
RUN find /third_party/maven/ -path "*_remote.repositories" | xargs -I{} rm {}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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-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 timer-source/pom.xml timer-source/pom.xml
16+
COPY tools/ tools/
17+
18+
RUN mvn install -am -DskipTests -Drelease -Dlicense.skip -Deditorconfig.skip --no-transfer-progress
19+
20+
COPY . .
21+
22+
RUN mvn package -pl=aws-s3-sink -Drelease -am -DskipTests -Deditorconfig.skip --no-transfer-progress
23+
24+
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime as running
25+
26+
USER 185
27+
28+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/lib/ /deployments/lib/
29+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/*.jar /deployments/
30+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/app/ /deployments/app/
31+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/quarkus/ /deployments/quarkus/
32+
33+
COPY LICENSE /licenses/
34+
35+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
36+
37+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
ARG DEPS_IMAGE
20+
21+
FROM $DEPS_IMAGE AS deps
22+
23+
FROM $JAVA_BUILDER AS builder
24+
25+
USER root
26+
27+
WORKDIR /build
28+
29+
COPY --from=deps /third_party/maven/ /third_party/maven/
30+
31+
COPY . .
32+
33+
RUN mvn -Dmaven.repo.local=/third_party/maven --offline package -pl=aws-s3-sink -Drelease -am -DskipTests --no-transfer-progress
34+
35+
FROM $JAVA_RUNTIME AS running
36+
ARG VERSION=""
37+
38+
USER 185
39+
40+
LABEL \
41+
com.redhat.component="openshift-serverless-1-eventing-integrations-aws-s3-sink-rhel8-container" \
42+
name="openshift-serverless-1/eventing-integrations-aws-s3-sink-rhel8" \
43+
version=$VERSION \
44+
release=$VERSION \
45+
summary="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
46+
maintainer="serverless-support@redhat.com" \
47+
description="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
48+
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Integrations AWS S3 Sink" \
49+
io.k8s.description="Red Hat OpenShift Serverless Eventing Integrations AWS S3 Sink" \
50+
io.openshift.tags=aws-s3-sink
51+
52+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/lib/ /deployments/lib/
53+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/*.jar /deployments/
54+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/app/ /deployments/app/
55+
COPY --from=builder --chown=185 /build/aws-s3-sink/target/quarkus-app/quarkus/ /deployments/quarkus/
56+
57+
COPY LICENSE /licenses/
58+
59+
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
60+
61+
ENTRYPOINT ["java", "-jar", "/deployments/quarkus-run.jar"]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
19+
FROM $JAVA_BUILDER
20+
21+
USER root
22+
23+
WORKDIR /build
24+
25+
COPY pom.xml .
26+
COPY aws-ddb-streams-source/pom.xml aws-ddb-streams-source/pom.xml
27+
COPY aws-s3-sink/pom.xml aws-s3-sink/pom.xml
28+
COPY aws-s3-source/pom.xml aws-s3-source/pom.xml
29+
COPY aws-sns-sink/pom.xml aws-sns-sink/pom.xml
30+
COPY aws-sqs-sink/pom.xml aws-sqs-sink/pom.xml
31+
COPY aws-sqs-source/pom.xml aws-sqs-source/pom.xml
32+
COPY log-sink/pom.xml log-sink/pom.xml
33+
COPY timer-source/pom.xml timer-source/pom.xml
34+
COPY tools/ tools/
35+
36+
RUN mvn package dependency:go-offline -Drelease -DskipTests -Dmaven.repo.local=/third_party/maven
37+
RUN find /third_party/maven/ -path "*_remote.repositories" | xargs -I{} rm {}

0 commit comments

Comments
 (0)