Skip to content

Lory1990/mia-platform-quarkus-native-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarkus Template for Mia Platform

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

Local development

Make sure you have installed the following tools

  • Maven
  • JDK (Java Development Kit) >= 11

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

Environment variables

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

Deploy

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.

About

Java Quarkus Native template for mia Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published