From 25a744c0eeb25830e972e9330fa03c05122b4077 Mon Sep 17 00:00:00 2001 From: Ricardo Zanini Date: Fri, 27 Aug 2021 16:26:36 -0300 Subject: [PATCH] [KOGITO-5719] Update Kogito Add-Ons to newly Quarkus Extensions Signed-off-by: Ricardo Zanini --- .../chap-kogito-configuring.adoc | 40 +++++++++++-------- .../chap-kogito-deploying-on-openshift.adoc | 2 +- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/doc-content/kogito-docs/src/main/asciidoc/configuration/chap-kogito-configuring.adoc b/doc-content/kogito-docs/src/main/asciidoc/configuration/chap-kogito-configuring.adoc index e933e312e0..91cd631cfa 100644 --- a/doc-content/kogito-docs/src/main/asciidoc/configuration/chap-kogito-configuring.adoc +++ b/doc-content/kogito-docs/src/main/asciidoc/configuration/chap-kogito-configuring.adoc @@ -1132,13 +1132,9 @@ You can enable persistence for your {PRODUCT} services using https://infinispan. ---- org.kie.kogito - kogito-addons-persistence-infinispan + kogito-addons-quarkus-persistence-infinispan __{PRODUCT_INIT_CAP}_VERSION__ - - io.quarkus - quarkus-infinispan-client - ---- .On Spring Boot @@ -1201,13 +1197,9 @@ As an alternative to using Infinispan for {PRODUCT} runtime persistence, you can ---- org.kie.kogito - kogito-addons-persistence-mongodb + kogito-addons-quarkus-persistence-mongodb __{PRODUCT_INIT_CAP}_VERSION__ - - io.quarkus - quarkus-mongodb-client - ---- .On Spring Boot @@ -1463,21 +1455,22 @@ You can enable PostgreSQL persistence for your {PRODUCT} services using reactive .Prerequisites * https://www.postgresql.org/[PostgreSQL] is installed. For information about PostgreSQL installation and configuration, see https://www.postgresql.org/docs/current/[PostgreSQL documentation]. -.Procedure -. Add the following dependency to the `pom.xml` file of your {PRODUCT} project: -+ +.On Quarkus + +Add the following dependency to the `pom.xml` file of your {PRODUCT} project: + -- .Project dependency to enable PostgreSQL persistence [source,xml,subs="attributes+,+quotes"] ---- org.kie.kogito - kogito-addons-persistence-postgresql + kogito-addons-quarkus-persistence-postgresql __{PRODUCT_INIT_CAP}_VERSION__ ---- -- -.On Quarkus + Add the following properties to the `src/main/resources/application.properties` file in your {PRODUCT} project to configure PostgreSQL and to connect to the PostgreSQL server. + -- @@ -1499,6 +1492,21 @@ quarkus.datasource.password=kogito-pass * `millis`: This parameter is used to control the waiting time for the application to respond to each executed query. The default value of `millis` is `10000`. .On Spring Boot + +Add the following dependency to the `pom.xml` file of your {PRODUCT} project: ++ +-- +.Project dependency to enable PostgreSQL persistence +[source,xml,subs="attributes+,+quotes"] +---- + + org.kie.kogito + kogito-quarkus-persistence-postgresql + __{PRODUCT_INIT_CAP}_VERSION__ + +---- +-- + Add the following properties to the `src/main/resources/application.properties` file in your {PRODUCT} project to configure PostgreSQL and to connect to the PostgreSQL server. Replace the server host, port, credentials, and other information according to your PostgreSQL installation. @@ -1544,7 +1552,7 @@ You can enable PostgreSQL persistence for your {PRODUCT} services using JDBC dri ---- org.kie.kogito - kogito-addons-persistence-jdbc + kogito-addons-quarkus-persistence-jdbc __{PRODUCT_INIT_CAP}_VERSION__ diff --git a/doc-content/kogito-docs/src/main/asciidoc/openshift/chap-kogito-deploying-on-openshift.adoc b/doc-content/kogito-docs/src/main/asciidoc/openshift/chap-kogito-deploying-on-openshift.adoc index 50a968e665..a9286ac81f 100644 --- a/doc-content/kogito-docs/src/main/asciidoc/openshift/chap-kogito-deploying-on-openshift.adoc +++ b/doc-content/kogito-docs/src/main/asciidoc/openshift/chap-kogito-deploying-on-openshift.adoc @@ -1281,7 +1281,7 @@ The `application.properties` data of the `configMap` resource is mounted in a vo When the `application.properties` data of the `configMap` is changed, a rolling update modifies the deployment and configuration of the Data Index Service. -If your {PRODUCT} project uses the `kogito-addons-persistence-infinispan` or the `kogito-addons-persistence-mongodb` add-on to enable Infinispan or MongoDB persistence explicitly, the {PRODUCT} Operator mounts a volume based on a `configMap` resource created for you during the deployment of the service. This `configMap` resource has the `-protobuf-files` suffix and lists the protobuf (https://developers.google.com/protocol-buffers/[protocol buffers]) files that your service generated during build time. +If your {PRODUCT} project uses the Infinispan or MongoDB Persistence {PRODUCT} Add-On to enable Infinispan or MongoDB persistence explicitly, the {PRODUCT} Operator mounts a volume based on a `configMap` resource created for you during the deployment of the service. This `configMap` resource has the `-protobuf-files` suffix and lists the protobuf (https://developers.google.com/protocol-buffers/[protocol buffers]) files that your service generated during build time. .Example `configMap` resource with protobuf files listed [source,yaml]