Vscode Remote Development Containers: Quarkus Kogito
Devcontainer for using Quarkus/Kogito with Infinispan for persistence.
dev mode
mvn clean compile quarkus:devopen 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 testbuild and run native executable
mvn clean package -Pnative
# Find executable in `target` directory.
ls -l target
run integration tests against native executable
mvn verify -Pnativebuild 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.

