From db48be42c51a6bd48e04f2e5c2dc2c6abd79aec9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 17 Apr 2020 21:44:59 +0200 Subject: Use Jib to build the Docker image. Change-Id: Ie528da5c7d3de5f62f8005edc909da15224a87a9 --- pom.xml | 45 +++---------------------------- src/main/resources/application.properties | 9 +++++++ 2 files changed, 13 insertions(+), 41 deletions(-) diff --git a/pom.xml b/pom.xml index 9854434..ebfaa8e 100644 --- a/pom.xml +++ b/pom.xml @@ -197,6 +197,10 @@ io.quarkus quarkus-smallrye-jwt + + io.quarkus + quarkus-container-image-jib + @@ -347,47 +351,6 @@ - - io.fabric8 - docker-maven-plugin - ${docker-plugin.version} - - - - - docker.benkard.de/mulk/mulkcms2 - master - - ${project.basedir} - ${project.basedir}/src/main/docker/Dockerfile.jvm - - latest - ${project.version} - - - - - - - - - build - install - - build - - - - - deploy - deploy - - push - - - - - maven-antrun-plugin ${antrun-plugin.version} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 80a4620..1e6de8a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -64,6 +64,15 @@ mulkcms.jwt.validity = P1D # Deployment docker.registry = docker.benkard.de +quarkus.container-image.build = true +quarkus.container-image.push = true +quarkus.container-image.group = mulk +quarkus.container-image.name = mulkcms2 +quarkus.container-image.registry = docker.benkard.de + +quarkus.jib.base-jvm-image = adoptopenjdk:14-jre-hotspot +quarkus.jib.jvm-arguments = -XX:+UnlockExperimentalVMOptions,-XX:+UseShenandoahGC,-XX:ShenandoahGCHeuristics=compact + kubernetes.deployment.target = kubernetes kubernetes.group = mulk kubernetes.name = mulkcms2 -- cgit v1.2.3