Skip to content

Commit

Permalink
kie-issues#1285: Remove unnecessary base image from quarkus examples …
Browse files Browse the repository at this point in the history
…(quay.io/kiegroup/kogito-runtime-jvm:latest) (apache#1980)

* [incubator-kie-issues-1285] Remove unnecessary base image from examples

* Update openjdk-17 to 1.20

---------

Co-authored-by: nmirasch <[email protected]>
  • Loading branch information
2 people authored and rgdoliveira committed Jul 17, 2024
1 parent 0189eea commit 41aabe6
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion kogito-quarkus-examples/dmn-tracing-quarkus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

FROM quay.io/kiegroup/kogito-runtime-jvm:latest
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20

ENV RUNTIME_TYPE quarkus

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-travels-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-visas-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-business-rules-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-error-handling-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-infinispan-persistence-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-kafka-multi-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-kafka-persistence-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-kafka-quickstart-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-mongodb-persistence-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-postgresql-persistence-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-rest-service-call-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-rest-workitem-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-scripts-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-service-calls-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-timer-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-usertasks-custom-lifecycle-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-usertasks-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-usertasks-with-security-oidc-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-usertasks-with-security-quarkus-jvm
#
###
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand All @@ -23,4 +23,4 @@ COPY target/quarkus-app/*.jar /deployments/
COPY target/quarkus-app/app/ /deployments/app/
COPY target/quarkus-app/quarkus/ /deployments/quarkus/

ENTRYPOINT [ "/deployments/run-java.sh" ]
ENTRYPOINT [ "/deployments/run-java.sh" ]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/kiegroup/kogito-runtime-jvm:latest
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20

ENV RUNTIME_TYPE springboot

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM quay.io/kiegroup/kogito-runtime-jvm:latest
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20

ENV RUNTIME_TYPE quarkus

COPY target/*-runner.jar $KOGITO_HOME/bin
COPY target/lib $KOGITO_HOME/bin/lib
COPY target/lib $KOGITO_HOME/bin/lib
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ You should see a similar output like this:
<details><summary>Build logs</summary>
```
---> Building and pushing image using tag quay.io/your_namespace/pr-checker-workflow:latest
STEP 1: FROM quay.io/kiegroup/kogito-runtime-jvm:latest
STEP 1: FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.20
STEP 2: ENV RUNTIME_TYPE quarkus
STEP 3: COPY target/*-runner.jar $KOGITO_HOME/bin
--> 58760d128d8
Expand Down Expand Up @@ -177,4 +177,4 @@ Talk to the cluster administrator to understand how your cluster and Istio Ingre

### Cleaning up!

See the project root's [README](./README.md) documentation.
See the project root's [README](./README.md) documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi8/openjdk-17:1.18
FROM registry.access.redhat.com/ubi8/openjdk-17:1.20

ENV LANGUAGE='en_US:en'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi8/openjdk-17:1.18
FROM registry.access.redhat.com/ubi8/openjdk-17:1.20

ENV LANGUAGE='en_US:en'

Expand Down

0 comments on commit 41aabe6

Please sign in to comment.