File tree Expand file tree Collapse file tree 2 files changed +33
-4
lines changed Expand file tree Collapse file tree 2 files changed +33
-4
lines changed Original file line number Diff line number Diff line change
1
+ FROM openjdk:8-alpine
2
+
3
+ COPY target/client-java-examples-0.2-SNAPSHOT-jar-with-dependencies.jar /examples.jar
4
+
5
+ CMD ["java" , "-jar" , "/examples.jar" ]
6
+
7
+
Original file line number Diff line number Diff line change 1
- <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 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
1
+ <project
2
+ xmlns=" http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
4
<modelVersion >4.0.0</modelVersion >
3
5
<groupId >io.kubernetes</groupId >
4
6
<artifactId >client-java-examples</artifactId >
5
7
<version >0.2-SNAPSHOT</version >
6
8
<packaging >jar</packaging >
7
9
<name >client-java-examples</name >
8
10
<url >https://github.com/kubernetes-client/java</url >
9
-
10
11
<parent >
11
12
<groupId >io.kubernetes</groupId >
12
13
<artifactId >client-java-parent</artifactId >
13
14
<version >0.2-SNAPSHOT</version >
14
15
</parent >
15
-
16
16
<dependencies >
17
17
<dependency >
18
18
<groupId >io.kubernetes</groupId >
52
52
<skip >true</skip >
53
53
</configuration >
54
54
</plugin >
55
+ <plugin >
56
+ <groupId >org.apache.maven.plugins</groupId >
57
+ <artifactId >maven-assembly-plugin</artifactId >
58
+ <executions >
59
+ <execution >
60
+ <phase >package</phase >
61
+ <goals >
62
+ <goal >single</goal >
63
+ </goals >
64
+ <configuration >
65
+ <archive >
66
+ <manifest >
67
+ <mainClass >io.kubernetes.client.examples.Example</mainClass >
68
+ </manifest >
69
+ </archive >
70
+ <descriptorRefs >
71
+ <descriptorRef >jar-with-dependencies</descriptorRef >
72
+ </descriptorRefs >
73
+ </configuration >
74
+ </execution >
75
+ </executions >
76
+ </plugin >
55
77
</plugins >
56
78
</build >
57
79
<properties >
66
88
<junit-version >4.12</junit-version >
67
89
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
68
90
</properties >
69
- </project >
91
+ </project >
You can’t perform that action at this time.
0 commit comments