This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:kiegroup/kogito-examples.git | |
cd kogito-examples/process-business-rules-quarkus | |
mvn clean package quarkus:dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{"person" : {"name" : "john", "age" : 20}}' http://localhost:8080/persons | |
# The response should be something like: | |
# {"id":"90fab845-ae55-4118-b808-8c301c3060a5","person":{"name":"john","age":20,"adult":true}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quay.io/kiegroup/kogito-quarkus-jvm-ubi8:latest | |
COPY target/*-runner.jar $KOGITO_HOME/bin | |
COPY target/lib $KOGITO_HOME/bin/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAMESPACE=kogito | |
VERSION=<current_operator_version> | |
kubectl apply -n "${NAMESPACE}" -f "https://github.com/kiegroup/kogito-cloud-operator/releases/download/${VERSION}/kogito-operator.yaml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl -n kogito get pods | |
NAME READY STATUS RESTARTS AGE | |
kogito-operator-6954f4cdd9-ml87h 1/1 Running 0 74s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat <<EOF | kubectl -n kogito apply -f - | |
apiVersion: app.kiegroup.org/v1beta1 | |
kind: KogitoRuntime | |
metadata: | |
name: process-business-rules-quarkus | |
spec: | |
replicas: 1 | |
image: quay.io/<your-quay-namespace>/process-business-rules-quarkus:latest | |
EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl -n kogito get kogitoruntime | |
NAME REPLICAS IMAGE | |
process-business-rules-quarkus 1 quay.io/<your-quay-namespace>/process-business-rules-quarkus:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat <<EOF | kubectl -n kogito apply -f - | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: process-business-rules-quarkus | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
rules: | |
- host: kogito-example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{"person" : {"name" : "john", "age" : 20}}' http://kogito-example.com/persons | |
# You should see a response like this: | |
{"id":"90fab845-ae55-4118-b808-8c301c3060a5","person":{"name":"john","age":20,"adult":true}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "online-vehicle-auction", | |
"name": "Online Vehicle Auction", | |
"version": "1.0v", | |
"functions": [ | |
{ | |
"name": "userAuthServiceCall", | |
"resource": "http://authservice.com", | |
"type": "rest", | |
"metadata": { |