https://github.com/kiegroup/kogito-cloud-operator#kogito-cli
Setup OpenShift 4 UPI
Login as kubeadmin (password は quicklab の OpenShift Credentials から)
-> Operators -> OperatorHub -> Search with kogito
Install kogito-operator to a project (e.g. 'default')
oc login --token=... (Command Line Tools)
Download kogito CLI via https://github.com/kiegroup/kogito-cloud-operator/releases
-> Unzip
confirm oc version, kogito version
oc version kogito --version
サービス作成
kogito use-project default kogito deploy-service example-quarkus https://github.com/kiegroup/kogito-examples/ --context-dir=drools-quarkus-example
KogitoApp 'example-quarkus' successfully created on namespace 'default' You can see the deployment status by using 'oc describe kogitoapp example-quarkus -n default' Your Kogito Runtime Service should be deploying. To see its logs, run 'oc logs -f bc/example-quarkus-builder -n default'
アプリテスト
URL は Routes で確認
curl -X GET http://example-quarkus-default.apps.tkobayas01.lab.pnq2.cee.redhat.com/candrink/john/35
native build
kogito deploy-service example-quarkus https://github.com/kiegroup/kogito-examples/ --context-dir=drools-quarkus-example --native
サービス削除
kogito delete-service example-quarkus