This project uses Quarkus framework, version 3.
You can run your application in dev mode that enables live coding using:
./mvnw compile quarkus:dev
A Dev UI is available in dev mode at http://localhost:8081/qrbill-api/q/dev/.
The application can be packaged using:
./mvnw package
It produces the qrbill-service-x.x.x-runner.jar
file in the target/
directory.
It is an über-jar including all the dependencies.
The application is now runnable using java -jar target/qrbill-service-x.x.x-runner.jar
.
You can create a native executable using:
./mvnw package -Dnative
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
./mvnw package -Dnative -Dquarkus.native.container-build=true
Actually used command:
quarkus build --native -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=podman
Build docker image:
buildx build --file=src/main/docker/Dockerfile.native-micro --tag=qrbill/qrbill-service --output=type=docker .
Run it locally:
docker run -i --rm -e QUARKUS_HTTP_CORS='false' -p 8081:8081 qrbill/qrbill-service