diff options
| author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-17 21:44:59 +0200 | 
|---|---|---|
| committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-17 21:44:59 +0200 | 
| commit | db48be42c51a6bd48e04f2e5c2dc2c6abd79aec9 (patch) | |
| tree | c548459e86ab429ab80ceea2741d854843921fed | |
| parent | 70d2795a0ec9b7777d5fa65455afcc88229ef208 (diff) | |
Use Jib to build the Docker image.
Change-Id: Ie528da5c7d3de5f62f8005edc909da15224a87a9
| -rw-r--r-- | pom.xml | 45 | ||||
| -rw-r--r-- | src/main/resources/application.properties | 9 | 
2 files changed, 13 insertions, 41 deletions
| @@ -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 | 
