update:
fix bugs
This commit is contained in:
48
pom.xml
48
pom.xml
@@ -408,6 +408,54 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.cloud.tools</groupId>
|
||||||
|
<artifactId>jib-maven-plugin</artifactId>
|
||||||
|
<version>3.4.3</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- 推送到 Harbor -->
|
||||||
|
<to>
|
||||||
|
<image>192.168.31.132:8888/library/zyp-boot</image>
|
||||||
|
<auth>
|
||||||
|
<username>${docker.username}</username>
|
||||||
|
<password>${docker.password}</password>
|
||||||
|
</auth>
|
||||||
|
<tags>
|
||||||
|
<tag>${project.version}</tag>
|
||||||
|
<tag>latest</tag>
|
||||||
|
</tags>
|
||||||
|
</to>
|
||||||
|
|
||||||
|
<!-- 基础镜像 -->
|
||||||
|
<from>
|
||||||
|
<image>eclipse-temurin:8-jre-alpine</image>
|
||||||
|
</from>
|
||||||
|
|
||||||
|
<container>
|
||||||
|
<mainClass>com.fly.boot.ZYPBootApplication</mainClass>
|
||||||
|
<ports>
|
||||||
|
<port>8091</port>
|
||||||
|
</ports>
|
||||||
|
<environment>
|
||||||
|
<LANG>C.UTF-8</LANG>
|
||||||
|
<LC_ALL>C.UTF-8</LC_ALL>
|
||||||
|
<TZ>Asia/Shanghai</TZ>
|
||||||
|
</environment>
|
||||||
|
<jvmFlags>
|
||||||
|
<jvmFlag>-Xms512m</jvmFlag>
|
||||||
|
<jvmFlag>-Xmx1024m</jvmFlag>
|
||||||
|
<jvmFlag>-Dfile.encoding=utf-8</jvmFlag>
|
||||||
|
</jvmFlags>
|
||||||
|
<args>
|
||||||
|
<arg>--spring.profiles.active=prod</arg>
|
||||||
|
</args>
|
||||||
|
</container>
|
||||||
|
|
||||||
|
<!-- 如果是 HTTP Harbor(如内网测试),取消注释下一行 -->
|
||||||
|
<allowInsecureRegistries>true</allowInsecureRegistries>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ spring:
|
|||||||
port: 6379
|
port: 6379
|
||||||
host: 192.168.31.132
|
host: 192.168.31.132
|
||||||
password: 112233
|
password: 112233
|
||||||
database: 0
|
database: 1
|
||||||
jedis:
|
jedis:
|
||||||
pool:
|
pool:
|
||||||
max-active: 8
|
max-active: 8
|
||||||
|
|||||||
Reference in New Issue
Block a user