Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KOGITO-5719] Update Kogito Add-Ons to newly Quarkus Extensions #3852

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1132,13 +1132,9 @@ You can enable persistence for your {PRODUCT} services using https://infinispan.
----
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-addons-persistence-infinispan</artifactId>
<artifactId>kogito-addons-quarkus-persistence-infinispan</artifactId>
<version>__{PRODUCT_INIT_CAP}_VERSION__</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-infinispan-client</artifactId>
</dependency>
----

.On Spring Boot
Expand Down Expand Up @@ -1201,13 +1197,9 @@ As an alternative to using Infinispan for {PRODUCT} runtime persistence, you can
----
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-addons-persistence-mongodb</artifactId>
<artifactId>kogito-addons-quarkus-persistence-mongodb</artifactId>
<version>__{PRODUCT_INIT_CAP}_VERSION__</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-mongodb-client</artifactId>
</dependency>
----

.On Spring Boot
Expand Down Expand Up @@ -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"]
----
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-addons-persistence-postgresql</artifactId>
<artifactId>kogito-addons-quarkus-persistence-postgresql</artifactId>
<version>__{PRODUCT_INIT_CAP}_VERSION__</version>
</dependency>
----
--
.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.
+
--
Expand All @@ -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"]
----
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-persistence-postgresql</artifactId>
<version>__{PRODUCT_INIT_CAP}_VERSION__</version>
</dependency>
----
--

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.
Expand Down Expand Up @@ -1544,7 +1552,7 @@ You can enable PostgreSQL persistence for your {PRODUCT} services using JDBC dri
----
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-addons-persistence-jdbc</artifactId>
<artifactId>kogito-addons-quarkus-persistence-jdbc</artifactId>
<version>__{PRODUCT_INIT_CAP}_VERSION__</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down