fix:docker 打包器更换1
This commit is contained in:
parent
aac1d8f19a
commit
6de466392a
8
pom.xml
8
pom.xml
|
|
@ -304,6 +304,12 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
</plugin>
|
||||
|
||||
<!-- Dockerfile 新插件 -->
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
|
|
@ -322,7 +328,7 @@
|
|||
<configuration>
|
||||
<username>sino-tech-admin</username>
|
||||
<password>Fros_1234</password>
|
||||
<repository>175.178.38.240:8076//${artifactId}</repository>
|
||||
<repository>175.178.38.240:8076/${artifactId}</repository>
|
||||
<tag>${project.version}</tag>
|
||||
<buildArgs>
|
||||
<!--提供参数向Dockerfile传递-->
|
||||
|
|
|
|||
|
|
@ -70,23 +70,50 @@
|
|||
</plugin>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>dockerfile-maven-plugin</artifactId>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<from>
|
||||
<!--使用openjdk官方镜像,tag是8-jdk-stretch,表示镜像的操作系统是debian9,装好了jdk8-->
|
||||
<image>openjdk:8-jre</image>
|
||||
</from>
|
||||
<to>
|
||||
<image>${project.name}/${project.artifactId}:${project.version}</image>
|
||||
</to>
|
||||
<!--容器相关的属性-->
|
||||
<container>
|
||||
<!--jvm内存参数-->
|
||||
<jvmFlags>
|
||||
<jvmFlag>-Xms1g</jvmFlag>
|
||||
<jvmFlag>-Xmx1g</jvmFlag>
|
||||
</jvmFlags>
|
||||
<!--要暴露的端口-->
|
||||
<ports>
|
||||
<port>12200</port>
|
||||
</ports>
|
||||
</container>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <plugin>-->
|
||||
<!-- <groupId>com.spotify</groupId>-->
|
||||
<!-- <artifactId>dockerfile-maven-plugin</artifactId>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <username>sino-tech-admin</username>-->
|
||||
<!-- <password>Fros_1234</password>-->
|
||||
<!--指定包名-->
|
||||
<repository>${project.artifactId}</repository>
|
||||
<tag>${project.version}</tag>
|
||||
<buildArgs>
|
||||
<!--提供参数向Dockerfile传递-->
|
||||
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
|
||||
</buildArgs>
|
||||
</configuration>
|
||||
<!-- <repository>${project.artifactId}</repository>-->
|
||||
<!-- <tag>${project.version}</tag>-->
|
||||
<!-- <buildArgs>-->
|
||||
<!-- <!–提供参数向Dockerfile传递–>-->
|
||||
<!-- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
|
||||
<!-- </buildArgs>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <dockerfile>-->
|
||||
<!-- <buildArgs>-->
|
||||
|
|
@ -124,7 +151,7 @@
|
|||
<!-- </dockerfile>-->
|
||||
|
||||
<!-- </configuration>-->
|
||||
</plugin>
|
||||
<!-- </plugin>-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue