blob: 11b7de62b7a175e0a79dbb3404ba3904da2c8c87 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Anaël Clossonf15b97e2017-02-08 10:46:48 +01002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Rob Daughertye8000512018-08-01 00:02:38 -04003
ChrisC025301d2017-01-31 11:40:03 +01004 <modelVersion>4.0.0</modelVersion>
5
6 <parent>
Arthur Martella22e015f2018-02-22 14:24:40 -05007 <groupId>org.onap.so</groupId>
ChrisC025301d2017-01-31 11:40:03 +01008 <artifactId>packages</artifactId>
Rob Daugherty325d4e22018-10-19 15:13:38 -04009 <version>1.4.0-SNAPSHOT</version>
ChrisC025301d2017-01-31 11:40:03 +010010 </parent>
11
12 <packaging>pom</packaging>
ChrisC025301d2017-01-31 11:40:03 +010013 <artifactId>docker</artifactId>
Rob Daughertye8000512018-08-01 00:02:38 -040014 <name>Docker Images</name>
15 <description>Docker Images</description>
ChrisC025301d2017-01-31 11:40:03 +010016
17 <properties>
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Rob Daughertye8000512018-08-01 00:02:38 -040020 <so.project.version>${project.version}</so.project.version>
21 <docker.skip>false</docker.skip>
22 <docker.skip.build>false</docker.skip.build>
23 <docker.skip.push>false</docker.skip.push>
Rob Daughertyf5893182018-04-05 16:09:32 -040024 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
25 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
ChrisC025301d2017-01-31 11:40:03 +010026 </properties>
27
28 <build>
29 <finalName>${project.artifactId}-${project.version}</finalName>
30 <plugins>
31 <plugin>
Rob Daughertye8000512018-08-01 00:02:38 -040032 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
34 <version>1.0</version>
Anaël Closson13e0d022017-02-14 11:17:50 +010035 <executions>
36 <execution>
Rob Daughertye8000512018-08-01 00:02:38 -040037 <phase>validate</phase>
Anaël Closson13e0d022017-02-14 11:17:50 +010038 <goals>
Rob Daughertye8000512018-08-01 00:02:38 -040039 <goal>execute</goal>
Anaël Closson13e0d022017-02-14 11:17:50 +010040 </goals>
Anaël Closson13e0d022017-02-14 11:17:50 +010041 <configuration>
Rob Daughertye8000512018-08-01 00:02:38 -040042 <source>
43 println 'Project version: ' + project.properties['so.project.version'];
44 def versionArray;
45 if ( project.properties['so.project.version'] != null ) {
46 versionArray = project.properties['so.project.version'].split('-');
47 }
48
49 if ( project.properties['so.project.version'].endsWith("-SNAPSHOT") ) {
50 project.properties['project.docker.latesttag.version']=versionArray[0] + "-SNAPSHOT-latest";
51 } else {
Rob Daugherty568e98f2018-08-01 10:09:48 -040052 project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest";
Rob Daughertye8000512018-08-01 00:02:38 -040053 }
54
55 println 'New tag for docker: ' + project.properties['project.docker.latesttag.version'];
56 </source>
Anaël Closson13e0d022017-02-14 11:17:50 +010057 </configuration>
58 </execution>
59 </executions>
60 </plugin>
Rob Daughertye8000512018-08-01 00:02:38 -040061
Anaël Closson13e0d022017-02-14 11:17:50 +010062 <plugin>
ChrisC025301d2017-01-31 11:40:03 +010063 <groupId>io.fabric8</groupId>
64 <artifactId>docker-maven-plugin</artifactId>
Rob Daughertyf5893182018-04-05 16:09:32 -040065 <version>0.19.1</version>
ChrisC025301d2017-01-31 11:40:03 +010066
67 <configuration>
68 <verbose>true</verbose>
69 <apiVersion>1.23</apiVersion>
Rob Daughertyf5893182018-04-05 16:09:32 -040070 <pullRegistry>${docker.pull.registry}</pullRegistry>
71 <pushRegistry>${docker.push.registry}</pushRegistry>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010072
ChrisC025301d2017-01-31 11:40:03 +010073 <images>
74 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -040075 <name>onap/so/base-image:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010076 <build>
77 <cleanup>try</cleanup>
78 <dockerFileDir>docker-files</dockerFileDir>
Rob Daughertye8000512018-08-01 00:02:38 -040079 <dockerFile>Dockerfile.so-base-image</dockerFile>
ChrisC025301d2017-01-31 11:40:03 +010080 </build>
81 </image>
82 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -040083 <name>onap/so/catalog-db-adapter</name>
ChrisC025301d2017-01-31 11:40:03 +010084 <build>
ChrisC025301d2017-01-31 11:40:03 +010085 <cleanup>try</cleanup>
86 <dockerFileDir>docker-files</dockerFileDir>
Rob Daughertye8000512018-08-01 00:02:38 -040087 <dockerFile>Dockerfile.so-app</dockerFile>
JulienBec3f8ddf2017-03-08 02:19:21 -080088 <tags>
Rob Daughertye8000512018-08-01 00:02:38 -040089 <tag>${project.version}</tag>
90 <tag>${project.version}-${maven.build.timestamp}</tag>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070091 <tag>${project.docker.latesttag.version}</tag>
JulienBec3f8ddf2017-03-08 02:19:21 -080092 </tags>
ChrisC025301d2017-01-31 11:40:03 +010093 <assembly>
Rob Daughertye8000512018-08-01 00:02:38 -040094 <inline>
95 <dependencySets>
96 <dependencySet>
97 <includes>
98 <include>org.onap.so.adapters:mso-catalog-db-adapter</include>
99 </includes>
100 <outputFileNameMapping>app.jar</outputFileNameMapping>
101 </dependencySet>
102 </dependencySets>
103 </inline>
ChrisC025301d2017-01-31 11:40:03 +0100104 </assembly>
105 </build>
106 </image>
Rob Daughertye8000512018-08-01 00:02:38 -0400107 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400108 <name>onap/so/request-db-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400109 <build>
110 <cleanup>try</cleanup>
111 <dockerFileDir>docker-files</dockerFileDir>
112 <dockerFile>Dockerfile.so-app</dockerFile>
113 <tags>
114 <tag>${project.version}</tag>
115 <tag>${project.version}-${maven.build.timestamp}</tag>
116 <tag>${project.docker.latesttag.version}</tag>
117 </tags>
118 <assembly>
119 <inline>
120 <dependencySets>
121 <dependencySet>
122 <includes>
123 <include>org.onap.so.adapters:mso-requests-db-adapter</include>
124 </includes>
125 <outputFileNameMapping>app.jar</outputFileNameMapping>
126 </dependencySet>
127 </dependencySets>
128 </inline>
129 </assembly>
130 </build>
131 </image>
132 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400133 <name>onap/so/sdnc-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400134 <build>
135 <cleanup>try</cleanup>
136 <dockerFileDir>docker-files</dockerFileDir>
137 <dockerFile>Dockerfile.so-app</dockerFile>
138 <tags>
139 <tag>${project.version}</tag>
140 <tag>${project.version}-${maven.build.timestamp}</tag>
141 <tag>${project.docker.latesttag.version}</tag>
142 </tags>
143 <assembly>
144 <inline>
145 <dependencySets>
146 <dependencySet>
147 <includes>
148 <include>org.onap.so:mso-sdnc-adapter</include>
149 </includes>
150 <outputFileNameMapping>app.jar</outputFileNameMapping>
151 </dependencySet>
152 </dependencySets>
153 </inline>
154 </assembly>
155 </build>
156 </image>
157 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400158 <name>onap/so/openstack-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400159 <build>
160 <cleanup>try</cleanup>
161 <dockerFileDir>docker-files</dockerFileDir>
162 <dockerFile>Dockerfile.so-app</dockerFile>
163 <tags>
164 <tag>${project.version}</tag>
165 <tag>${project.version}-${maven.build.timestamp}</tag>
166 <tag>${project.docker.latesttag.version}</tag>
167 </tags>
168 <assembly>
169 <inline>
170 <dependencySets>
171 <dependencySet>
172 <includes>
173 <include>org.onap.so:mso-openstack-adapters</include>
174 </includes>
175 <outputFileNameMapping>app.jar</outputFileNameMapping>
176 </dependencySet>
177 </dependencySets>
178 </inline>
179 </assembly>
180 </build>
181 </image>
182 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400183 <name>onap/so/vfc-adapter</name>
Rob Daugherty91682972018-08-01 15:20:54 -0400184 <build>
185 <cleanup>try</cleanup>
186 <dockerFileDir>docker-files</dockerFileDir>
187 <dockerFile>Dockerfile.so-app</dockerFile>
188 <tags>
189 <tag>${project.version}</tag>
190 <tag>${project.version}-${maven.build.timestamp}</tag>
191 <tag>${project.docker.latesttag.version}</tag>
192 </tags>
193 <assembly>
194 <inline>
195 <dependencySets>
196 <dependencySet>
197 <includes>
198 <include>org.onap.so.adapters:mso-vfc-adapter</include>
199 </includes>
200 <outputFileNameMapping>app.jar</outputFileNameMapping>
201 </dependencySet>
202 </dependencySets>
203 </inline>
204 </assembly>
205 </build>
206 </image>
207 <image>
Rob Daugherty969cde42018-08-23 15:38:17 -0400208 <name>onap/so/sdc-controller</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400209 <build>
210 <cleanup>try</cleanup>
211 <dockerFileDir>docker-files</dockerFileDir>
212 <dockerFile>Dockerfile.so-app</dockerFile>
213 <tags>
214 <tag>${project.version}</tag>
215 <tag>${project.version}-${maven.build.timestamp}</tag>
216 <tag>${project.docker.latesttag.version}</tag>
217 </tags>
218 <assembly>
219 <inline>
220 <dependencySets>
221 <dependencySet>
222 <includes>
223 <include>org.onap.so:asdc-controller</include>
224 </includes>
225 <outputFileNameMapping>app.jar</outputFileNameMapping>
226 </dependencySet>
227 </dependencySets>
228 </inline>
229 </assembly>
230 </build>
231 </image>
232 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400233 <name>onap/so/bpmn-infra</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400234 <build>
235 <cleanup>try</cleanup>
236 <dockerFileDir>docker-files</dockerFileDir>
237 <dockerFile>Dockerfile.so-app</dockerFile>
238 <tags>
239 <tag>${project.version}</tag>
240 <tag>${project.version}-${maven.build.timestamp}</tag>
241 <tag>${project.docker.latesttag.version}</tag>
242 </tags>
243 <assembly>
244 <inline>
245 <dependencySets>
246 <dependencySet>
247 <includes>
248 <include>org.onap.so:mso-infrastructure-bpmn</include>
249 </includes>
250 <outputFileNameMapping>app.jar</outputFileNameMapping>
251 </dependencySet>
252 </dependencySets>
253 </inline>
254 </assembly>
255 </build>
256 </image>
257 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400258 <name>onap/so/api-handler-infra</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400259 <build>
260 <cleanup>try</cleanup>
261 <dockerFileDir>docker-files</dockerFileDir>
262 <dockerFile>Dockerfile.so-app</dockerFile>
263 <tags>
264 <tag>${project.version}</tag>
265 <tag>${project.version}-${maven.build.timestamp}</tag>
266 <tag>${project.docker.latesttag.version}</tag>
267 </tags>
268 <assembly>
269 <inline>
270 <dependencySets>
271 <dependencySet>
272 <includes>
273 <include>org.onap.so:mso-api-handler-infra</include>
274 </includes>
275 <outputFileNameMapping>app.jar</outputFileNameMapping>
276 </dependencySet>
277 </dependencySets>
278 </inline>
279 </assembly>
280 </build>
281 </image>
root9b57edd2018-09-17 10:28:05 +0100282 <image>
283 <name>onap/so/so-monitoring</name>
284 <build>
285 <cleanup>try</cleanup>
286 <dockerFileDir>docker-files</dockerFileDir>
287 <dockerFile>Dockerfile.so-app</dockerFile>
288 <tags>
289 <tag>${project.version}</tag>
290 <tag>${project.version}-${maven.build.timestamp}</tag>
291 <tag>${project.docker.latesttag.version}</tag>
292 </tags>
293 <assembly>
294 <inline>
295 <dependencySets>
296 <dependencySet>
297 <includes>
298 <include>org.onap.so.monitoring:so-monitoring-service</include>
299 </includes>
300 <outputFileNameMapping>app.jar</outputFileNameMapping>
301 </dependencySet>
302 </dependencySets>
303 </inline>
304 </assembly>
305 </build>
306 </image>
ChrisC025301d2017-01-31 11:40:03 +0100307 </images>
308 </configuration>
Rob Daughertye8000512018-08-01 00:02:38 -0400309
ChrisC025301d2017-01-31 11:40:03 +0100310 <executions>
311 <execution>
312 <id>clean-images</id>
313 <phase>pre-clean</phase>
314 <goals>
315 <goal>remove</goal>
316 </goals>
317 <configuration>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100318 <removeAll>true</removeAll>
ChrisC025301d2017-01-31 11:40:03 +0100319 </configuration>
320 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100321
ChrisC025301d2017-01-31 11:40:03 +0100322 <execution>
323 <id>generate-images</id>
324 <phase>generate-sources</phase>
325 <goals>
326 <goal>build</goal>
327 </goals>
328 </execution>
329
330 <execution>
331 <id>push-images</id>
332 <phase>deploy</phase>
333 <goals>
334 <goal>build</goal>
335 <goal>push</goal>
336 </goals>
337 <configuration>
root9b57edd2018-09-17 10:28:05 +0100338 <image>onap/so/catalog-db-adapter,onap/so/request-db-adapter,onap/so/sdnc-adapter,onap/so/openstack-adapter,onap/so/vfc-adapter,onap/so/sdc-controller,onap/so/bpmn-infra,onap/so/api-handler-infra,onap/so/so-monitoring</image>
ChrisC025301d2017-01-31 11:40:03 +0100339 </configuration>
340 </execution>
341 </executions>
ChrisC025301d2017-01-31 11:40:03 +0100342 </plugin>
343
344 <plugin>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-deploy-plugin</artifactId>
347 <version>2.8</version>
348 <configuration>
349 <skip>true</skip>
350 </configuration>
351 </plugin>
352 </plugins>
353 </build>
354
Rob Daughertye8000512018-08-01 00:02:38 -0400355 <dependencies>
356 <dependency>
357 <groupId>org.onap.so.adapters</groupId>
358 <artifactId>mso-catalog-db-adapter</artifactId>
359 <version>${project.version}</version>
360 </dependency>
361 <dependency>
362 <groupId>org.onap.so.adapters</groupId>
363 <artifactId>mso-requests-db-adapter</artifactId>
364 <version>${project.version}</version>
365 </dependency>
366 <dependency>
367 <groupId>org.onap.so</groupId>
368 <artifactId>mso-sdnc-adapter</artifactId>
369 <version>${project.version}</version>
370 </dependency>
371 <dependency>
372 <groupId>org.onap.so</groupId>
373 <artifactId>mso-openstack-adapters</artifactId>
374 <version>${project.version}</version>
375 </dependency>
376 <dependency>
Rob Daugherty91682972018-08-01 15:20:54 -0400377 <groupId>org.onap.so.adapters</groupId>
378 <artifactId>mso-vfc-adapter</artifactId>
379 <version>${project.version}</version>
380 </dependency>
381 <dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400382 <groupId>org.onap.so</groupId>
383 <artifactId>asdc-controller</artifactId>
384 <version>${project.version}</version>
385 </dependency>
386 <dependency>
387 <groupId>org.onap.so</groupId>
388 <artifactId>mso-infrastructure-bpmn</artifactId>
389 <version>${project.version}</version>
390 </dependency>
391 <dependency>
392 <groupId>org.onap.so</groupId>
393 <artifactId>mso-api-handler-infra</artifactId>
394 <version>${project.version}</version>
395 </dependency>
root9b57edd2018-09-17 10:28:05 +0100396 <dependency>
Byung-Woo June9da6d02018-09-25 14:47:28 -0400397 <groupId>org.onap.so.monitoring</groupId>
root9b57edd2018-09-17 10:28:05 +0100398 <artifactId>so-monitoring-service</artifactId>
399 <version>${project.version}</version>
400 </dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400401 </dependencies>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100402</project>