-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
94 lines (94 loc) · 4.16 KB
/
Copy pathpom.xml
File metadata and controls
94 lines (94 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jayxu</groupId>
<artifactId>spring-boot-admin-server-docker</artifactId>
<version>${admin.version}</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.1.1</version>
</parent>
<properties>
<java.version>25</java.version>
<admin.version>4.1.2</admin.version>
</properties>
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>${admin.version}</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${admin.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>mustangxu/spring-boot-admin-server-native:${project.version}-${git.commit.id.abbrev}</name>
<env>
<BP_JVM_VERSION>17</BP_JVM_VERSION>
<GRAALVM_QUICK_BUILD>true</GRAALVM_QUICK_BUILD>
<!--BP_LOG_LEVEL>DEBUG</BP_LOG_LEVEL-->
</env>
</image>
</configuration>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<configuration>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.49.0</version>
<configuration>
<verbose>true</verbose>
<images>
<image>
<name>mustangxu/spring-boot-admin-server</name>
<build>
<tags>
<!--tag>latest</tag-->
<tag>%v-${git.commit.id.abbrev}</tag>
</tags>
<from>bellsoft/liberica-runtime-container:jre-17-slim-musl</from>
<workdir>/app</workdir>
<entryPoint>
<exec>
<arg>java</arg>
<arg>-Xmx1G</arg>
<arg>--enable-preview</arg>
<arg>-XX:+UnlockExperimentalVMOptions</arg>
<arg>-XX:+UseZGC</arg>
<arg>-jar</arg>
<arg>${project.artifactId}-${project.version}.jar</arg>
</exec>
</entryPoint>
<assemblies>
<assembly>
<descriptorRef>artifact</descriptorRef>
<targetDir>/app</targetDir>
</assembly>
</assemblies>
<ports>
<port>9000</port>
</ports>
</build>
</image>
</images>
</configuration>
</plugin>
</plugins>
</build>
</project>