This is a showcase project.
You can run your application in dev mode that enables live coding using:
./gradlew quarkusDevNOTE: for develop - quarkusDev - only the database is needed. So just use the docker-compose.db.yml file or another postgres.
The application can be packaged using:
./gradlew buildYou can create a native executable using:
./gradlew build -Dquarkus.package.type=nativeFirst, take sure that you already have generated a jar for the docker build.
build the container
docker-compose -f docker-compose.yml build --no-cachestart both containers
docker-compose -f docker-compose.db.yml -f docker-compose.yml up -d NOTE: in this example, the swagger-ui is always available at http://localhost:8080/q/swagger-ui .
For using the project with minikube.
minikube yml via kompose (just as a template)
kompose convert -f docker-compose.db.yml -f docker-compose.yml --out minikube.template.yaml
deploy service to minikube
kubectl apply -f minikube.yaml
The endpoint for the swagger-ui is: http://{IPAddress}:30080/q/swagger-ui/
get all pods
kubectl get pods -A
testing with in-memory databases
quarkus - postgres - ORM Panache
NOTE: the ReadinessCheck for the datasource is allready implemented by the quarkus-smallrye-health datasource-health-check
-
quarkus - Kubernetes Extension
- automatically provide a kubernetes.yml
-
- shall provide the infrastructure needed, e.g. docker, minikube etc.