summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-17 21:44:59 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-17 21:44:59 +0200
commitdb48be42c51a6bd48e04f2e5c2dc2c6abd79aec9 (patch)
treec548459e86ab429ab80ceea2741d854843921fed
parent70d2795a0ec9b7777d5fa65455afcc88229ef208 (diff)
Use Jib to build the Docker image.
Change-Id: Ie528da5c7d3de5f62f8005edc909da15224a87a9
-rw-r--r--pom.xml45
-rw-r--r--src/main/resources/application.properties9
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 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-jwt</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-container-image-jib</artifactId>
+ </dependency>
<!-- JNA -->
<dependency>
@@ -348,47 +352,6 @@
</plugin>
<plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker-plugin.version}</version>
-
- <configuration>
- <images>
- <image>
- <name>docker.benkard.de/mulk/mulkcms2</name>
- <alias>master</alias>
- <build>
- <contextDir>${project.basedir}</contextDir>
- <dockerFile>${project.basedir}/src/main/docker/Dockerfile.jvm</dockerFile>
- <tags>
- <tag>latest</tag>
- <tag>${project.version}</tag>
- </tags>
- </build>
- </image>
- </images>
- </configuration>
-
- <executions>
- <execution>
- <id>build</id>
- <phase>install</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
-
- <execution>
- <id>deploy</id>
- <phase>deploy</phase>
- <goals>
- <goal>push</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun-plugin.version}</version>
<executions>
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