This is a template to be used in Mia Platform console to create a new Java Application using Quarkus but it is compiled using GraalVM in native mode.
The microservice comes with hello word endpoint
GET - https://localhost:8000
the technical ones for Kubernetes
/-/check
/-/healthz
/-/ready
And the documentation one
/documentation/json
Make sure you have installed the following tools
Simply open the application with your favorite IDE (for example intelliJIdea) and use the following commands to download libraries
mvn clean
mvn install
then you can run the application with
mvn quarkus:dev
if you want to run test you can use
mvn test
All variables can be customized using application.properties
files or injecting UPPERCASE_DASHED_VARIABLES
into Docker container.
The main variables are:
HTTP_PORT
port of the container - default 8000
The microservice comes with Build&Deploy GitLab pipeline (see .gitlab-ci.yml
), simply push the code and tag it when you want to deploy.
The build takes a bit of time (approx 5 mins), this is normal.