|
@@ -136,6 +136,53 @@
|
|
</excludes>
|
|
</excludes>
|
|
</configuration>
|
|
</configuration>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>com.google.cloud.tools</groupId>
|
|
|
|
+ <artifactId>jib-maven-plugin</artifactId>
|
|
|
|
+ <version>3.4.2</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!-- 拉取所需的基础镜像 - 这里的jdk21,是用于运行springboot项目 -->
|
|
|
|
+ <from>
|
|
|
|
+ <image>taskgo/corretto:21</image>
|
|
|
|
+ </from>
|
|
|
|
+ <!-- 最后生成的镜像配置 -->
|
|
|
|
+ <to>
|
|
|
|
+ <!-- push docker 仓库。用户名/镜像名 -->
|
|
|
|
+ <image>hkccr.ccs.tencentyun.com/pay-platform/merchant-api</image>
|
|
|
|
+ <tags>
|
|
|
|
+ <!--版本号-->
|
|
|
|
+ <tag>latest</tag>
|
|
|
|
+ </tags>
|
|
|
|
+ <auth>
|
|
|
|
+ <!--账号和密码-->
|
|
|
|
+ <username>100004270996</username>
|
|
|
|
+ <password>open@2023</password>
|
|
|
|
+ </auth>
|
|
|
|
+ </to>
|
|
|
|
+ <container>
|
|
|
|
+ <jvmFlags>
|
|
|
|
+ <jvmFlag>--enable-preview</jvmFlag>
|
|
|
|
+ <jvmFlag>-Xmx1g</jvmFlag>
|
|
|
|
+ <jvmFlag>-Xmx1g</jvmFlag>
|
|
|
|
+ <jvmFlag>-Duser.timezone=Asia/Shanghai</jvmFlag>
|
|
|
|
+ </jvmFlags>
|
|
|
|
+ <mainClass>pay.platform.MerchantApplication</mainClass>
|
|
|
|
+ <ports>
|
|
|
|
+ <port>8090</port>
|
|
|
|
+ </ports>
|
|
|
|
+ </container>
|
|
|
|
+ <allowInsecureRegistries>true</allowInsecureRegistries>
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <phase>package</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>build</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
</plugins>
|
|
</plugins>
|
|
</build>
|
|
</build>
|
|
-</project>
|
|
|
|
|
|
+
|
|
|
|
+</project>
|