Skip to content

vscode devcontainer for using Kogito with persistence.

Notifications You must be signed in to change notification settings

alitari/vscode-remote-kogito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vscode Remote Development Containers: Quarkus Kogito

Devcontainer for using Quarkus/Kogito with Infinispan for persistence.

dev mode

mvn clean compile quarkus:dev

open a new terminal and call endpoint with:

curl -X POST http://localhost:8021/persons \
    -H 'content-type: application/json' \
    -H 'accept: application/json' \
    -d '{"person": {"name":"John Quark", "age": 20}}'

test

mvn clean test

build and run native executable

mvn clean package -Pnative
# Find executable in `target` directory.
ls -l target

run integration tests against native executable

mvn verify -Pnative

build docker image with native executable

docker build -f src/main/docker/Dockerfile.native -t quarkus/using-kogito .

persistence

In this example non-adults are persisted.

# persist
curl -X POST http://localhost:8021/persons \
     -H 'content-type: application/json' \
     -H 'accept: application/json' \
     -d '{"person": {"name":"John Quark", "age": 15}}'
# fetch persons
curl -X GET http://localhost:8021/persons \
     -H 'content-type: application/json' \
     -H 'accept: application/json'

After restarting the app we get the same result when we fetching persons.

About

vscode devcontainer for using Kogito with persistence.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published