This commit is contained in:
20
pom.xml
20
pom.xml
@@ -191,29 +191,21 @@
|
||||
<!-- 添加主类配置 -->
|
||||
<mainClass>com.light.delivery.LightApplication</mainClass>
|
||||
</container>
|
||||
<!-- 为云端CI/CD环境配置 -->
|
||||
<allowInsecureRegistries>false</allowInsecureRegistries>
|
||||
<sendCredentialsOverHttp>false</sendCredentialsOverHttp>
|
||||
<!-- CI/CD环境优化配置 -->
|
||||
<httpTimeout>60000</httpTimeout>
|
||||
<retries>3</retries>
|
||||
<!-- 使用本地已有的基础镜像 -->
|
||||
<pullParentImage>false</pullParentImage>
|
||||
<!-- 离线模式配置,确保使用本地已有镜像 -->
|
||||
<offline>true</offline>
|
||||
<!-- 不验证远程仓库 -->
|
||||
<allowInsecureRegistries>true</allowInsecureRegistries>
|
||||
<!-- 不拉取父镜像 -->
|
||||
<pullParent>false</pullParent>
|
||||
<!-- 镜像标签配置 -->
|
||||
<outputPaths>
|
||||
<tar>${project.build.directory}/jib-image.tar</tar>
|
||||
</outputPaths>
|
||||
<!-- 优化CI/CD构建 -->
|
||||
<containerizingMode>packaged</containerizingMode>
|
||||
<!-- 配置不安全的镜像仓库 -->
|
||||
<insecureRegistries>
|
||||
<insecureRegistry>localhost:5000</insecureRegistry>
|
||||
</insecureRegistries>
|
||||
<!-- 其他优化配置 -->
|
||||
<skip>false</skip>
|
||||
<useOnlyProjectProperties>true</useOnlyProjectProperties>
|
||||
<!-- 启用离线模式 -->
|
||||
<offline>true</offline>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
Reference in New Issue
Block a user