Skip to content

fugerit-org/fj-daogen-quarkus-demo

Repository files navigation

fj-daogen-quarkus-demo

Fugerit Daogen Mars demo project based on Quarkus.

Keep a Changelog v1.1.0 badge license code of conduct Quality Gate Status Coverage Docker images

Java runtime version Java build version Apache Maven

Quickstart

Start in dev mode

mvn compile quarkus:dev -Duser.timezone=UTC -Dfile.encoding=UTF-8

Open dev ui or sample API Page

Java package version

build :

mvn package

and run :

java -jar target/quarkus-app/quarkus-run.jar

Java package uber jar version

build :

mvn package -Dquarkus.package.type=uber-jar

and tun :

java -jar target/fj-daogen-quarkus-demo-*-runner.jar

Docker container (jvm version)

Build :

docker build --file src/main/docker/Dockerfile.corretto-jvm -t fj-daogen-quarkus-demo:local-jvm .
docker run -p 8080:8080 --name fj-daogen-quarkus-demo-local fj-daogen-quarkus-demo:local-jvm

Native package version

Build :

First you need to setup GraalVM : BUILDING A NATIVE EXECUTABLE

mvn install -Dnative

Run :

./target/fj-daogen-quarkus-demo-*-runner -Duser.timezone=UTC -Dfile.encoding=UTF-8

Docker container (native version)

Build :

docker build --file src/main/docker/Dockerfile.native-micro -t fj-daogen-quarkus-demo:local-native .
docker run -p 8080:8080 --name fj-daogen-quarkus-demo-local fj-daogen-quarkus-demo:local-native

Project creation script

mvn io.quarkus:quarkus-maven-plugin:3.8.0:create \
-DprojectGroupId=org.fugerit.java.demo \
-DprojectArtifactId=fj-daogen-quarkus-demo \
-Dextensions='resteasy-reactive-jackson,quarkus-arc,quarkus-config-yaml,junit5'