Forráskód Böngészése

添加镜像Plugin

Seven 6 hónapja
szülő
commit
8a0eb07329
3 módosított fájl, 144 hozzáadás és 3 törlés
  1. 48 1
      web/agent-api/pom.xml
  2. 48 1
      web/merchant-api/pom.xml
  3. 48 1
      web/open-api/pom.xml

+ 48 - 1
web/agent-api/pom.xml

@@ -136,6 +136,53 @@
                     </excludes>
                 </configuration>
             </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/agent-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.AgentApplication</mainClass>
+                        <ports>
+                            <port>8089</port>
+                        </ports>
+                    </container>
+                    <allowInsecureRegistries>true</allowInsecureRegistries>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
-</project>
+
+</project>

+ 48 - 1
web/merchant-api/pom.xml

@@ -136,6 +136,53 @@
                     </excludes>
                 </configuration>
             </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>
     </build>
-</project>
+
+</project>

+ 48 - 1
web/open-api/pom.xml

@@ -139,6 +139,53 @@
                     </excludes>
                 </configuration>
             </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/open-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.ApiApplication</mainClass>
+                        <ports>
+                            <port>8091</port>
+                        </ports>
+                    </container>
+                    <allowInsecureRegistries>true</allowInsecureRegistries>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
-</project>
+
+</project>