-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
90 lines (86 loc) · 2.37 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>@project.groupId@</groupId>
<artifactId>@project.artifactId@-it</artifactId>
<version>LOCAL-SNAPSHOT</version>
</parent>
<artifactId>@project.artifactId@-it-pod-with-local-image-from-tar</artifactId>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-bom</artifactId>
<version>3.4.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-runtime</artifactId>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-management</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>buildTar</goal>
</goals>
<configuration>
<from>
<image>gcr.io/distroless/java:${maven.compiler.target}-nonroot</image>
</from>
<to>
<image>${project.artifactId}</image>
</to>
<outputPaths>
<tar>${project.build.outputDirectory}/image.tar</tar>
</outputPaths>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.kokuwa.maven</groupId>
<artifactId>k3s-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>run</goal>
<goal>image</goal>
<goal>apply</goal>
<goal>rm</goal>
</goals>
<configuration>
<tarFiles>
<tarFile>${project.build.outputDirectory}/image.tar</tarFile>
</tarFiles>
<portBindings>
<portBinding>8080:8080</portBinding>
</portBindings>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>