Skip to content

This Repo is about demonstration of how to get started with TrustyAI. In this repo readme file is well structured created which describes all the process step by step to start with TrustyAI.

Notifications You must be signed in to change notification settings

Bhasker23/TrustycoreAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

TrustyCore 😍

Description

This is a simple git Repo that demonstrates how to get started with TrustyAI.

Installation 🖥️

Prerequisites :

You will need 🛠️ -

  • Git - 2.27.0 .
  • Docker - 20.10.3 .
  • Docker-compose - 1.25.2 .
  • Java - 11 ☕
  • Maven - 3.6.3

Just so you know, also previous versions of the applications might work, but they were not tested.

Steps to complete setup 📋🖋️ :

  1. clone the kogito-examples Repository :octocat:.

    git clone https://github.com/kiegroup/kogito-examples.git

  2. Check out the stable branch.

    cd kogito-examples
    git checkout stable

Compile and package in Local Dev Mode 🔌 :

Build a new kogito decision service with the tracing-addon and the monitoring-addon. or you can compile and package already prepared service at.

Before building jar check for the embedded Maven version if you using any IDE.

mvn clean package -DskipTests -f dmn-tracing-quarkus/pom.xml

On successfully jar building :

Change the directory to - dmn-tracing-quarkus

Build 🧱 the Docker Image

Give this command to your cmd at the present directory.

docker build -t <your_namespace>/dmn-tracing-quarkus:1.0 dmn-tracing-quarkus/

Now the docker image will be built.

Run 🏃‍♂️ the Kogito service together with the TrustyAI infrastructure 🏢.

In order to do that, change your current directory to

kogito-examples/kogito-quarkus-examples/trusty-demontration/docker-compose

With your preferred editor, edit the file docker-compose.yaml and replace the line 48 with the tag of the docker image you have just created.

Screenshot-from-2021-03-09-17-01-47-1-768x230

Run 🏃‍♂️ the docker-compose command

docker-compose up

with the above command, you will able to see that some data is downloading and pulling. On successful pulling, there are some containers created.

Screenshot (1016)

Now the services are available at the following endpoints:

  • You can now open localhost:8080/swagger-ui

Swagger

Execute some POST requests to the LoanEligibility with the following payload.

{
  "Bribe": 1000,
  "Client": {
    "age": 43,
    "existing payments": 100,
    "salary": 1950
  },
  "Loan": {
    "duration": 15,
    "installment": 180
  },
  "SupremeDirector": "Yes"
}

You should now see the executions in the AuditUI and the monitoring data in Grafana.

  • AuditUI: localhost:1337

Kogito

  • Grafana: localhost:3000

Grafna

About

This Repo is about demonstration of how to get started with TrustyAI. In this repo readme file is well structured created which describes all the process step by step to start with TrustyAI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published