Skip to content

Commit 1694e33

Browse files
committed
升级opensabre框架到0.2.0,简化jib docker打包
1 parent d020578 commit 1694e33

1 file changed

Lines changed: 1 addition & 49 deletions

File tree

pom.xml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>opensabre-base-dependencies</artifactId>
1616
<groupId>io.github.opensabre</groupId>
17-
<version>0.1.1</version>
17+
<version>0.2.0</version>
1818
</parent>
1919

2020
<properties>
@@ -104,54 +104,6 @@
104104
<plugin>
105105
<groupId>com.google.cloud.tools</groupId>
106106
<artifactId>jib-maven-plugin</artifactId>
107-
<dependencies>
108-
<!-- 添加所有权扩展 -->
109-
<dependency>
110-
<groupId>com.google.cloud.tools</groupId>
111-
<artifactId>jib-ownership-extension-maven</artifactId>
112-
<version>0.1.0</version>
113-
</dependency>
114-
</dependencies>
115-
<configuration>
116-
<pluginExtensions>
117-
<pluginExtension>
118-
<implementation>com.google.cloud.tools.jib.maven.extension.ownership.JibOwnershipExtension</implementation>
119-
<configuration implementation="com.google.cloud.tools.jib.maven.extension.ownership.Configuration">
120-
<rules>
121-
<rule>
122-
<glob>/app/logs/**</glob>
123-
<ownership>1001</ownership>
124-
</rule>
125-
</rules>
126-
</configuration>
127-
</pluginExtension>
128-
</pluginExtensions>
129-
<!-- 基础镜像 -->
130-
<from>
131-
<image>eclipse-temurin:21-jre-alpine</image>
132-
</from>
133-
<to>
134-
<image>${REGISTRY_URL}/${project.artifactId}:${project.version}</image>
135-
<auth>
136-
<username>${secret.id}</username>
137-
<password>${secret.key}</password>
138-
</auth>
139-
<tags>
140-
<tag>latest</tag>
141-
<tag>${project.version}</tag>
142-
</tags>
143-
</to>
144-
<container>
145-
<volumes>
146-
<volume>/app/logs</volume>
147-
</volumes>
148-
<!-- 设置环境变量 -->
149-
<environment>
150-
<!-- 设置时区 -->
151-
<TZ>Asia/Shanghai</TZ>
152-
</environment>
153-
</container>
154-
</configuration>
155107
</plugin>
156108
</plugins>
157109
</build>

0 commit comments

Comments
 (0)