Skip to content

Commit 4bb8bc7

Browse files
committed
2 parents df017aa + 6fdd263 commit 4bb8bc7

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

managedvms/async-rest/pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<properties>
99
<jetty.version>9.3.5.v20151012</jetty.version>
1010
<places.appkey>YOUR_PLACES_APP_KEY</places.appkey>
11+
<jetty.version>9.3.7.RC1</jetty.version>
12+
<docker.label.prefix>async-</docker.label.prefix>
1113
</properties>
1214
<build>
1315
<plugins>
@@ -42,6 +44,49 @@
4244
<log_level>debug</log_level>
4345
</configuration>
4446
</plugin>
47+
48+
<plugin>
49+
<groupId>com.spotify</groupId>
50+
<artifactId>docker-maven-plugin</artifactId>
51+
<version>0.3.2</version>
52+
<executions>
53+
<execution>
54+
<id>build-docker-image</id>
55+
<phase>package</phase>
56+
<goals>
57+
<goal>build</goal>
58+
</goals>
59+
<configuration>
60+
<baseImage>jetty9:${docker.label.prefix}${jetty.version}</baseImage>
61+
<forceTags>true</forceTags>
62+
<imageName>jetty9-async-rest</imageName>
63+
<imageTags>
64+
<imageTag>${docker.label.prefix}${project.version}</imageTag>
65+
</imageTags>
66+
<resources>
67+
<resource>
68+
<targetPath>/var/lib/jetty/webapps</targetPath>
69+
<directory>${project.build.directory}</directory>
70+
<include>${project.build.finalName}.war</include>
71+
</resource>
72+
</resources>
73+
</configuration>
74+
</execution>
75+
<execution>
76+
<id>clean-docker</id>
77+
<phase>clean</phase>
78+
<goals>
79+
<goal>removeImage</goal>
80+
</goals>
81+
<configuration>
82+
<imageName>jetty9-async-rest</imageName>
83+
<imageTags>
84+
<imageTag>${docker.label.prefix}${project.version}</imageTag>
85+
</imageTags>
86+
</configuration>
87+
</execution>
88+
</executions>
89+
</plugin>
4590
</plugins>
4691
</build>
4792
<dependencies>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
3+
4+
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
5+
<Set name="contextPath">/</Set>
6+
</Configure>

0 commit comments

Comments
 (0)