blob: 49f6422f3fe1aedef6c567ab175a40b84fabda94 [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>
MichaelMorris8aeffa02019-03-13 17:24:42 +000083 <name>onap/so/vnfm-adapter</name>
84 <build>
85 <cleanup>try</cleanup>
86 <dockerFileDir>docker-files</dockerFileDir>
87 <dockerFile>Dockerfile.so-app</dockerFile>
88 <tags>
89 <tag>${project.version}</tag>
90 <tag>${project.version}-${maven.build.timestamp}</tag>
91 <tag>${project.docker.latesttag.version}</tag>
92 </tags>
93 <assembly>
94 <inline>
95 <dependencySets>
96 <dependencySet>
97 <includes>
98 <include>org.onap.so.adapters:mso-vnfm-etsi-adapter</include>
99 </includes>
100 <outputFileNameMapping>app.jar</outputFileNameMapping>
101 </dependencySet>
102 </dependencySets>
103 </inline>
104 </assembly>
105 </build>
106 </image>
107 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400108 <name>onap/so/catalog-db-adapter</name>
ChrisC025301d2017-01-31 11:40:03 +0100109 <build>
ChrisC025301d2017-01-31 11:40:03 +0100110 <cleanup>try</cleanup>
111 <dockerFileDir>docker-files</dockerFileDir>
Rob Daughertye8000512018-08-01 00:02:38 -0400112 <dockerFile>Dockerfile.so-app</dockerFile>
JulienBec3f8ddf2017-03-08 02:19:21 -0800113 <tags>
Rob Daughertye8000512018-08-01 00:02:38 -0400114 <tag>${project.version}</tag>
115 <tag>${project.version}-${maven.build.timestamp}</tag>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700116 <tag>${project.docker.latesttag.version}</tag>
JulienBec3f8ddf2017-03-08 02:19:21 -0800117 </tags>
ChrisC025301d2017-01-31 11:40:03 +0100118 <assembly>
Rob Daughertye8000512018-08-01 00:02:38 -0400119 <inline>
120 <dependencySets>
121 <dependencySet>
122 <includes>
123 <include>org.onap.so.adapters:mso-catalog-db-adapter</include>
124 </includes>
125 <outputFileNameMapping>app.jar</outputFileNameMapping>
126 </dependencySet>
127 </dependencySets>
128 </inline>
ChrisC025301d2017-01-31 11:40:03 +0100129 </assembly>
130 </build>
131 </image>
Rob Daughertye8000512018-08-01 00:02:38 -0400132 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400133 <name>onap/so/request-db-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.adapters:mso-requests-db-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/sdnc-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-sdnc-adapter</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/openstack-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -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:mso-openstack-adapters</include>
199 </includes>
200 <outputFileNameMapping>app.jar</outputFileNameMapping>
201 </dependencySet>
202 </dependencySets>
203 </inline>
204 </assembly>
205 </build>
206 </image>
207 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400208 <name>onap/so/vfc-adapter</name>
Rob Daugherty91682972018-08-01 15:20:54 -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.adapters:mso-vfc-adapter</include>
224 </includes>
225 <outputFileNameMapping>app.jar</outputFileNameMapping>
226 </dependencySet>
227 </dependencySets>
228 </inline>
229 </assembly>
230 </build>
231 </image>
232 <image>
Rob Daugherty969cde42018-08-23 15:38:17 -0400233 <name>onap/so/sdc-controller</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:asdc-controller</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/bpmn-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-infrastructure-bpmn</include>
274 </includes>
275 <outputFileNameMapping>app.jar</outputFileNameMapping>
276 </dependencySet>
277 </dependencySets>
278 </inline>
279 </assembly>
280 </build>
281 </image>
282 <image>
Rob Daugherty8ad70832018-08-20 13:00:56 -0400283 <name>onap/so/api-handler-infra</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400284 <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:mso-api-handler-infra</include>
299 </includes>
300 <outputFileNameMapping>app.jar</outputFileNameMapping>
301 </dependencySet>
302 </dependencySets>
303 </inline>
304 </assembly>
305 </build>
306 </image>
root9b57edd2018-09-17 10:28:05 +0100307 <image>
308 <name>onap/so/so-monitoring</name>
309 <build>
310 <cleanup>try</cleanup>
311 <dockerFileDir>docker-files</dockerFileDir>
312 <dockerFile>Dockerfile.so-app</dockerFile>
313 <tags>
314 <tag>${project.version}</tag>
315 <tag>${project.version}-${maven.build.timestamp}</tag>
316 <tag>${project.docker.latesttag.version}</tag>
317 </tags>
318 <assembly>
319 <inline>
320 <dependencySets>
321 <dependencySet>
322 <includes>
323 <include>org.onap.so.monitoring:so-monitoring-service</include>
324 </includes>
325 <outputFileNameMapping>app.jar</outputFileNameMapping>
326 </dependencySet>
327 </dependencySets>
328 </inline>
329 </assembly>
330 </build>
331 </image>
ChrisC025301d2017-01-31 11:40:03 +0100332 </images>
333 </configuration>
Rob Daughertye8000512018-08-01 00:02:38 -0400334
ChrisC025301d2017-01-31 11:40:03 +0100335 <executions>
336 <execution>
337 <id>clean-images</id>
338 <phase>pre-clean</phase>
339 <goals>
340 <goal>remove</goal>
341 </goals>
342 <configuration>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100343 <removeAll>true</removeAll>
ChrisC025301d2017-01-31 11:40:03 +0100344 </configuration>
345 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100346
ChrisC025301d2017-01-31 11:40:03 +0100347 <execution>
348 <id>generate-images</id>
349 <phase>generate-sources</phase>
350 <goals>
351 <goal>build</goal>
352 </goals>
353 </execution>
354
355 <execution>
356 <id>push-images</id>
357 <phase>deploy</phase>
358 <goals>
359 <goal>build</goal>
360 <goal>push</goal>
361 </goals>
362 <configuration>
root9b57edd2018-09-17 10:28:05 +0100363 <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 +0100364 </configuration>
365 </execution>
366 </executions>
ChrisC025301d2017-01-31 11:40:03 +0100367 </plugin>
368
369 <plugin>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-deploy-plugin</artifactId>
372 <version>2.8</version>
373 <configuration>
374 <skip>true</skip>
375 </configuration>
376 </plugin>
377 </plugins>
378 </build>
379
Rob Daughertye8000512018-08-01 00:02:38 -0400380 <dependencies>
381 <dependency>
382 <groupId>org.onap.so.adapters</groupId>
MichaelMorris8aeffa02019-03-13 17:24:42 +0000383 <artifactId>mso-vnfm-etsi-adapter</artifactId>
384 <version>${project.version}</version>
385 </dependency>
386 <dependency>
387 <groupId>org.onap.so.adapters</groupId>
Rob Daughertye8000512018-08-01 00:02:38 -0400388 <artifactId>mso-catalog-db-adapter</artifactId>
389 <version>${project.version}</version>
390 </dependency>
391 <dependency>
392 <groupId>org.onap.so.adapters</groupId>
393 <artifactId>mso-requests-db-adapter</artifactId>
394 <version>${project.version}</version>
395 </dependency>
396 <dependency>
397 <groupId>org.onap.so</groupId>
398 <artifactId>mso-sdnc-adapter</artifactId>
399 <version>${project.version}</version>
400 </dependency>
401 <dependency>
402 <groupId>org.onap.so</groupId>
403 <artifactId>mso-openstack-adapters</artifactId>
404 <version>${project.version}</version>
405 </dependency>
406 <dependency>
Rob Daugherty91682972018-08-01 15:20:54 -0400407 <groupId>org.onap.so.adapters</groupId>
408 <artifactId>mso-vfc-adapter</artifactId>
409 <version>${project.version}</version>
410 </dependency>
411 <dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400412 <groupId>org.onap.so</groupId>
413 <artifactId>asdc-controller</artifactId>
414 <version>${project.version}</version>
415 </dependency>
416 <dependency>
417 <groupId>org.onap.so</groupId>
418 <artifactId>mso-infrastructure-bpmn</artifactId>
419 <version>${project.version}</version>
420 </dependency>
421 <dependency>
422 <groupId>org.onap.so</groupId>
423 <artifactId>mso-api-handler-infra</artifactId>
424 <version>${project.version}</version>
425 </dependency>
root9b57edd2018-09-17 10:28:05 +0100426 <dependency>
Byung-Woo June9da6d02018-09-25 14:47:28 -0400427 <groupId>org.onap.so.monitoring</groupId>
root9b57edd2018-09-17 10:28:05 +0100428 <artifactId>so-monitoring-service</artifactId>
429 <version>${project.version}</version>
430 </dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400431 </dependencies>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100432</project>