jib打包java程序镜像

使用jib插件打包springboot应用程序镜像:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>1.0.2</version>
<configuration>
<allowInsecureRegistries>true</allowInsecureRegistries>
<from>
<image>my_registry_host/jdk:8u172</image>
</from>
<to>
<image>my_registry_host/jib/jib-image</image>
<tags>
<tag>v0.1</tag>
</tags>
</to>
</configuration>
</plugin>