Requirements:
- openjdk 11 or higher
- maven 3.6.3 or higher
mvn package
mvn package -Dquarkus.package.uber-jar=true
Build
mvn package -Dquarkus.container-image.build=true
java -jar target/jeonserver-X.X.X-runner.jar
java -jar target/jeonserver-X.X.X-runner.jar
docker run -v /path/to/config:/config -p 8090:8080 user/jeonserver:X.X.X
Regular jar contains a runner and a lib folder with all dependencies while uber-jar include the runner and all dependencies in the one jar file.
Configuration file should be placed at $PWD/config/application.yml
so the working dir looks as:
<app>:
|- config
| \- application.yml
|- jeonserver-X.X.X-runner.jar
\- lib
|- libA.jar
|- libB.jar
|- ...
\- libZ.jar
<app>:
|- config
| \- application.yml
\- jeonserver-X.X.X-runner.jar
For docker image application.yml should be mapped to the /config folder in the image.