File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 100100 <groupId >com.spotify</groupId >
101101 <artifactId >dockerfile-maven-plugin</artifactId >
102102 </plugin >
103+ <!-- Jib Maven插件 -->
104+ <plugin >
105+ <groupId >com.google.cloud.tools</groupId >
106+ <artifactId >jib-maven-plugin</artifactId >
107+ <version >3.4.6</version >
108+ <configuration >
109+ <!-- 基础镜像 -->
110+ <from >
111+ <image >docker.1ms.run/eclipse-temurin:21-jre-alpine</image >
112+ </from >
113+ <!-- 目标镜像 -->
114+ <to >
115+ <image >opensabre/${project.artifactId} :${project.version} </image >
116+ </to >
117+ <!-- 容器配置 -->
118+ <container >
119+ <mainClass >io.github.opensabre.authorization.Oauth2AuthorizationApplication</mainClass >
120+ <ports >
121+ <port >8000</port >
122+ </ports >
123+ <jvmFlag >-XX:+UseContainerSupport</jvmFlag >
124+ <user >1000</user >
125+ <creationTime >USE_CURRENT_TIMESTAMP</creationTime >
126+ </container >
127+ </configuration >
128+ </plugin >
103129 </plugins >
104130 </build >
105131
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ spring:
1717
1818opensabre :
1919 oauth2 :
20- issuer-uri : http://www.opensabre.io :8000
20+ issuer-uri : http://www.opensabre.cloud :8000
2121
2222management :
2323 endpoints :
You can’t perform that action at this time.
0 commit comments