This is an automated email from the ASF dual-hosted git repository.
porcelli pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 549f73205 1285: remove unnecessary base image from quarkus example
(#1934)
549f73205 is described below
commit 549f73205eec897d3f0160e9334fb400f2c0bfde
Author: Alex Porcelli <[email protected]>
AuthorDate: Fri May 31 17:07:28 2024 -0400
1285: remove unnecessary base image from quarkus example (#1934)
---
.../process-monitoring-quarkus/Dockerfile | 31 ----------------------
.../process-monitoring-quarkus/docker-compose.yml | 2 +-
.../process-monitoring-quarkus/pom.xml | 4 +++
.../src/main/resources/application.properties | 6 +++++
4 files changed, 11 insertions(+), 32 deletions(-)
diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/Dockerfile
b/kogito-quarkus-examples/process-monitoring-quarkus/Dockerfile
deleted file mode 100644
index 6bff9a510..000000000
--- a/kogito-quarkus-examples/process-monitoring-quarkus/Dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM quay.io/kiegroup/kogito-runtime-jvm:latest
-
-ENV RUNTIME_TYPE quarkus
-
-COPY target/quarkus-app/lib/ $KOGITO_HOME/bin/lib/
-COPY target/quarkus-app/*.jar $KOGITO_HOME/bin
-COPY target/quarkus-app/app/ $KOGITO_HOME/bin/app/
-COPY target/quarkus-app/quarkus/ $KOGITO_HOME/bin/quarkus/
-
-# For the legacy quarkus application jar use the commands below
-# COPY target/*-runner.jar $KOGITO_HOME/bin
-# COPY target/lib $KOGITO_HOME/bin/lib
diff --git
a/kogito-quarkus-examples/process-monitoring-quarkus/docker-compose.yml
b/kogito-quarkus-examples/process-monitoring-quarkus/docker-compose.yml
index fe2cf90c1..9ecdf5164 100644
--- a/kogito-quarkus-examples/process-monitoring-quarkus/docker-compose.yml
+++ b/kogito-quarkus-examples/process-monitoring-quarkus/docker-compose.yml
@@ -21,7 +21,7 @@ version: '2'
services:
hello:
- build: .
+ image: org.kie.kogito.examples/process-monitoring-quarkus:1.0
ports:
- 8080:8080
diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml
b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml
index 2e25acde9..244633192 100755
--- a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml
+++ b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml
@@ -68,6 +68,10 @@
<groupId>org.kie</groupId>
<artifactId>kie-addons-quarkus-monitoring-prometheus</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-container-image-jib</artifactId>
+ </dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
diff --git
a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/application.properties
b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/application.properties
index c27ab7235..4bbbce90e 100644
---
a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/application.properties
+++
b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/application.properties
@@ -18,3 +18,9 @@
#
quarkus.swagger-ui.always-include=true
+
+# Container image
+quarkus.container-image.build=true
+quarkus.container-image.group=org.kie.kogito.examples
+quarkus.container-image.name=process-monitoring-quarkus
+quarkus.container-image.tag=1.0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]