File tree Expand file tree Collapse file tree
opensabre-base-dependencies Expand file tree Collapse file tree Original file line number Diff line number Diff line change 279279 <groupId >com.google.cloud.tools</groupId >
280280 <artifactId >jib-maven-plugin</artifactId >
281281 <version >${jib-maven-plugin.version} </version >
282+ <dependencies >
283+ <!-- 添加所有权扩展 -->
284+ <dependency >
285+ <groupId >com.google.cloud.tools</groupId >
286+ <artifactId >jib-ownership-extension-maven</artifactId >
287+ <version >0.1.0</version >
288+ </dependency >
289+ </dependencies >
282290 <configuration >
291+ <pluginExtensions >
292+ <pluginExtension >
293+ <implementation >com.google.cloud.tools.jib.maven.extension.ownership.JibOwnershipExtension</implementation >
294+ <configuration implementation =" com.google.cloud.tools.jib.maven.extension.ownership.Configuration" >
295+ <rules >
296+ <rule >
297+ <glob >/app/logs/**</glob >
298+ <ownership >1001</ownership >
299+ </rule >
300+ </rules >
301+ </configuration >
302+ </pluginExtension >
303+ </pluginExtensions >
283304 <!-- 基础镜像 -->
284305 <from >
285306 <image >eclipse-temurin:21-jre-alpine</image >
300321 <container >
301322 <user >1001</user >
302323 <workingDirectory >/app</workingDirectory >
324+ <volumes >
325+ <volume >/app/logs</volume >
326+ </volumes >
303327 <!-- 设置环境变量 -->
304328 <environment >
305329 <!-- 设置时区 -->
You can’t perform that action at this time.
0 commit comments