This file contains 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 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 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 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 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 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 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 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 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 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
apiVersion: app.kiegroup.org/v1alpha1 | |
kind: KogitoMgmtConsole | |
metadata: | |
name: management-console | |
spec: | |
replicas: 1 | |
image: | |
tag: "0.12" | |
# we use environment variables to set the external data index URL | |
# this is needed for now since Management Console is a client application, we are working on having a local proxy to |