Skip to content
Open
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ kogito-travel-agency/extended/scripts/persistence/
/kogito-quarkus-examples/ocp-tryout/installLogs.txt
/kogito-quarkus-examples/ocp-tryout/keycloak/kogito-realm.json

**/docker-compose/.env
**/docker-compose/.env
.mvn/maven.config
1 change: 0 additions & 1 deletion kogito-quarkus-examples/ocp-tryout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ if marked `-` then namespace defaults are applied
|---|---|---|---|---|
|**namespace default per deployment/statefulSet**|10m|64Mi|1|750Mi|
|keycloak|-|-|-|-|
|kogito-data-index-infinispan|-|-|-|500Mi|
|kogito-jobs-service|-|-|-|500Mi|
|kogito-travel-agency-travels-jvm|-|-|-|500Mi|
|kogito-travel-agency-visas-jvm|-|-|-|500Mi|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,6 @@ Please note the additional parameter to specify you are running the service loca
kubernetes, it would take advantage of the service lookup feature to find other required service using labels (which
isn't available when running locally).

### Running with persistence enabled

Kogito runtime supports multiple persistence types, including Infinispan. In order to use the Infinispan based
persistence, you need to have an Infinispan server installed and available over the network. The default configuration,
expects the server to be running on:

```
quarkus.infinispan-client.hosts=localhost:11222
```

If you need to change it, you can do so by updating the `application.properties` file located in `src/main/resources`.

You can install Infinispan server by downloading version 12.x from
the [official website](https://infinispan.org/download/).

Once Inifispan is up and running you can build this project with `-Ppersistence` to enable additional processing during
the build. Next you start it in exact same way as without persistence.

This extra profile in maven configuration adds additional dependencies needed to work with Infinispan as persistent
store.

## OpenAPI (Swagger) documentation

Expand Down Expand Up @@ -110,15 +90,12 @@ $ mvn clean install -Pminikube
# For Kubernetes or Knative just change the given profile to the respective platform (lower case).
```

> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` directory.

Please see the official [Quarkus Guide](https://quarkus.io/guides/deploying-to-kubernetes) for more information.

## Deploying to Knative

To be able to deploy to Knative you can follow
the [same guide mentioned above](https://quarkus.io/guides/deploying-to-kubernetes#knative). The needed information is
already added to the `application.properties` file.
the [same guide mentioned above](https://quarkus.io/guides/deploying-to-kubernetes#knative).

In addition, following permissions should be added to the default service account so the service discovery can properly
happen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,6 @@
</plugins>
</build>
<profiles>
<profile>
<id>persistence</id>
<activation>
<property>
<name>persistence</name>
</property>
</activation>
<properties>
<enable.resource.infinispan>true</enable.resource.infinispan>
</properties>
<dependencies>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-addons-quarkus-persistence-infinispan</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>minikube</id>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
# Packaging
# quarkus.package.jar.type=fast-jar
quarkus.http.port=8080
quarkus.infinispan-client.hosts=localhost:11222
quarkus.infinispan-client.use-auth=false

# Kubernetes related properties
%minikube.quarkus.kubernetes.deployment-target=minikube
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
import org.kie.kogito.internal.process.workitem.KogitoWorkItem;
import org.kie.kogito.internal.process.workitem.KogitoWorkItemHandler;
import org.kie.kogito.process.ProcessConfig;
import org.kie.kogito.testcontainers.quarkus.InfinispanQuarkusTestResource;

import io.fabric8.kubernetes.client.server.mock.EnableKubernetesMockClient;
import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.ContentType;

Expand All @@ -45,7 +43,6 @@

@EnableKubernetesMockClient
@QuarkusTest
@QuarkusTestResource(value = InfinispanQuarkusTestResource.Conditional.class)
public class OnboardingEndpointIT {

@Inject
Expand Down
2 changes: 0 additions & 2 deletions kogito-quarkus-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<module>process-decisions-rules-quarkus</module>
<module>process-error-handling</module>
<module>process-incubation-api-quarkus</module>
<module>process-infinispan-persistence-quarkus</module>
<module>process-instance-migration-quarkus</module>
<module>process-kafka-avro-multi-quarkus</module>
<module>process-kafka-multi-quarkus</module>
Expand Down Expand Up @@ -142,7 +141,6 @@
<module>pmml-event-driven-quarkus</module>
<module>pmml-quarkus-example</module>
<module>process-business-rules-quarkus</module>
<module>process-infinispan-persistence-quarkus</module>
<module>process-instance-migration-quarkus</module>
<module>process-kafka-persistence-quarkus</module>
<module>process-kafka-quickstart-quarkus</module>
Expand Down

This file was deleted.

Loading
Loading