This project goal is to have a better understanding using Quarkus framework with GraalVM, kafka and reactive.
To start up Kafka, navigate to root directory of the project and run:
docker-compose up
To build and run the application natively on docker, we can use the Dockerfile.multistage:
docker build -f ./docker/Dockerfile.multistage -t quarkus-app ./quarkus-api-server
If not, we can use the Dockerfile.native file instead but we must first package our application:
mvn -f quarkus-api-server/pom.xml package -Pnative -Dquarkus.native.container-build=true
and then:
docker build -f ./docker/Dockerfile.native -t quarkus-app ./quarkus-api-server
and finally, run it with:
docker run -i --rm -p 8081:8081 quarkus-app
Ctop
docker run -ti -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest