Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gautric/dmn-knative
https://github.com/gautric/dmn-knative
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gautric/dmn-knative
- Owner: gautric
- Created: 2020-05-05T15:11:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T20:39:01.000Z (over 3 years ago)
- Last Synced: 2024-10-20T08:58:45.144Z (18 days ago)
- Language: HTML
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# DMN KNative Project
## Introduction
This project is a set of DMN sample running with Kogito over Docker for local env or Knative for Cloud env
## Install KNative Operator
### Install KNative Operator
> oc project openshift-operators
> oc apply -f knative-operator.yaml
### Install KNative Serving
> oc create namespace knative-serving
> oc apply -f knative-serving.yaml
> oc get knativeserving.operator.knative.dev/knative-serving -n knative-serving --template='{{range .status.conditions}}{{printf "%s=%s\n" .type .status}}{{end}}'
....
DependenciesInstalled=True
DeploymentsAvailable=True
InstallSucceeded=True
Ready=True
VersionMigrationEligible=True
....## Compilation
### Maven
> mvn clean compile quarkus:dev
### Docker
> mvn clean package -Dquarkus.container-image.build=true
### Knative
You need K8S/OCP platform with KNative Operator installed
> oc apply -f knative.yaml
## Execution
> export DMN_URL=http://localhost:8080
> curl -d @data/calculmiles-CDG-KIX-gold.json -X POST -H "Content-Type: application/json" ${DMN_URL}/MilesCalculation 2> /dev/null | jq
> curl -d @data/calculmiles-CDG-JFK-silver.json -X POST -H "Content-Type: application/json" ${DMN_URL}/MilesCalculation 2> /dev/null | jq
> curl -d @data/kyc.json -X POST -H "Content-Type: application/json" ${DMN_URL}/KYC 2> /dev/null | jq
> curl -d @data/kyc-false-1M-JP.json -X POST -H "Content-Type: application/json" ${DMN_URL}/KYC 2> /dev/null | jq
> curl -d @data/kyc-true-150k-US.json -X POST -H "Content-Type: application/json" ${DMN_URL}/KYC 2> /dev/null | jq
### Credits
@mouachan
### Links
* https://docs.openshift.com/container-platform/4.6/serverless/installing_serverless/installing-openshift-serverless.html[Operator installation]
* https://docs.openshift.com/container-platform/4.6/serverless/installing_serverless/installing-knative-serving.html#serverless-install-serving-yaml_installing-knative-serving[]
*
* https://knative.dev/docs/install/install-kn/[Knative CLI]