blob: 3f033574c5336f86bcaf89ee410561a857692920 [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>
eeginux88c47a22019-04-03 14:28:09 +000026 <docker.image.prefix>onap/so</docker.image.prefix>
27 <docker.push.phase>deploy</docker.push.phase>
ChrisC025301d2017-01-31 11:40:03 +010028 </properties>
29
30 <build>
31 <finalName>${project.artifactId}-${project.version}</finalName>
32 <plugins>
33 <plugin>
Rob Daughertye8000512018-08-01 00:02:38 -040034 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
36 <version>1.0</version>
Anaël Closson13e0d022017-02-14 11:17:50 +010037 <executions>
38 <execution>
Rob Daughertye8000512018-08-01 00:02:38 -040039 <phase>validate</phase>
Anaël Closson13e0d022017-02-14 11:17:50 +010040 <goals>
Rob Daughertye8000512018-08-01 00:02:38 -040041 <goal>execute</goal>
Anaël Closson13e0d022017-02-14 11:17:50 +010042 </goals>
Anaël Closson13e0d022017-02-14 11:17:50 +010043 <configuration>
Rob Daughertye8000512018-08-01 00:02:38 -040044 <source>
45 println 'Project version: ' + project.properties['so.project.version'];
46 def versionArray;
47 if ( project.properties['so.project.version'] != null ) {
48 versionArray = project.properties['so.project.version'].split('-');
49 }
50
51 if ( project.properties['so.project.version'].endsWith("-SNAPSHOT") ) {
52 project.properties['project.docker.latesttag.version']=versionArray[0] + "-SNAPSHOT-latest";
53 } else {
Rob Daugherty568e98f2018-08-01 10:09:48 -040054 project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest";
Rob Daughertye8000512018-08-01 00:02:38 -040055 }
56
57 println 'New tag for docker: ' + project.properties['project.docker.latesttag.version'];
58 </source>
Anaël Closson13e0d022017-02-14 11:17:50 +010059 </configuration>
60 </execution>
61 </executions>
62 </plugin>
Rob Daughertye8000512018-08-01 00:02:38 -040063
Anaël Closson13e0d022017-02-14 11:17:50 +010064 <plugin>
ChrisC025301d2017-01-31 11:40:03 +010065 <groupId>io.fabric8</groupId>
66 <artifactId>docker-maven-plugin</artifactId>
Bin Luda3e10e2019-04-18 15:18:35 +080067 <version>0.28.0</version>
ChrisC025301d2017-01-31 11:40:03 +010068
69 <configuration>
70 <verbose>true</verbose>
71 <apiVersion>1.23</apiVersion>
Rob Daughertyf5893182018-04-05 16:09:32 -040072 <pullRegistry>${docker.pull.registry}</pullRegistry>
73 <pushRegistry>${docker.push.registry}</pushRegistry>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010074
ChrisC025301d2017-01-31 11:40:03 +010075 <images>
76 <image>
eeginux88c47a22019-04-03 14:28:09 +000077 <name>${docker.image.prefix}/base-image:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010078 <build>
79 <cleanup>try</cleanup>
80 <dockerFileDir>docker-files</dockerFileDir>
Rob Daughertye8000512018-08-01 00:02:38 -040081 <dockerFile>Dockerfile.so-base-image</dockerFile>
ChrisC025301d2017-01-31 11:40:03 +010082 </build>
83 </image>
84 <image>
eeginux88c47a22019-04-03 14:28:09 +000085 <name>${docker.image.prefix}/vnfm-adapter</name>
MichaelMorris8aeffa02019-03-13 17:24:42 +000086 <build>
87 <cleanup>try</cleanup>
88 <dockerFileDir>docker-files</dockerFileDir>
89 <dockerFile>Dockerfile.so-app</dockerFile>
90 <tags>
91 <tag>${project.version}</tag>
92 <tag>${project.version}-${maven.build.timestamp}</tag>
93 <tag>${project.docker.latesttag.version}</tag>
94 </tags>
95 <assembly>
96 <inline>
97 <dependencySets>
98 <dependencySet>
99 <includes>
100 <include>org.onap.so.adapters:mso-vnfm-etsi-adapter</include>
101 </includes>
102 <outputFileNameMapping>app.jar</outputFileNameMapping>
103 </dependencySet>
104 </dependencySets>
105 </inline>
106 </assembly>
107 </build>
108 </image>
109 <image>
eeginux88c47a22019-04-03 14:28:09 +0000110 <name>${docker.image.prefix}/catalog-db-adapter</name>
ChrisC025301d2017-01-31 11:40:03 +0100111 <build>
ChrisC025301d2017-01-31 11:40:03 +0100112 <cleanup>try</cleanup>
113 <dockerFileDir>docker-files</dockerFileDir>
Rob Daughertye8000512018-08-01 00:02:38 -0400114 <dockerFile>Dockerfile.so-app</dockerFile>
JulienBec3f8ddf2017-03-08 02:19:21 -0800115 <tags>
Rob Daughertye8000512018-08-01 00:02:38 -0400116 <tag>${project.version}</tag>
117 <tag>${project.version}-${maven.build.timestamp}</tag>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700118 <tag>${project.docker.latesttag.version}</tag>
JulienBec3f8ddf2017-03-08 02:19:21 -0800119 </tags>
ChrisC025301d2017-01-31 11:40:03 +0100120 <assembly>
Rob Daughertye8000512018-08-01 00:02:38 -0400121 <inline>
122 <dependencySets>
123 <dependencySet>
124 <includes>
125 <include>org.onap.so.adapters:mso-catalog-db-adapter</include>
126 </includes>
127 <outputFileNameMapping>app.jar</outputFileNameMapping>
128 </dependencySet>
129 </dependencySets>
130 </inline>
ChrisC025301d2017-01-31 11:40:03 +0100131 </assembly>
132 </build>
133 </image>
Rob Daughertye8000512018-08-01 00:02:38 -0400134 <image>
eeginux88c47a22019-04-03 14:28:09 +0000135 <name>${docker.image.prefix}/request-db-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400136 <build>
137 <cleanup>try</cleanup>
138 <dockerFileDir>docker-files</dockerFileDir>
139 <dockerFile>Dockerfile.so-app</dockerFile>
140 <tags>
141 <tag>${project.version}</tag>
142 <tag>${project.version}-${maven.build.timestamp}</tag>
143 <tag>${project.docker.latesttag.version}</tag>
144 </tags>
145 <assembly>
146 <inline>
147 <dependencySets>
148 <dependencySet>
149 <includes>
150 <include>org.onap.so.adapters:mso-requests-db-adapter</include>
151 </includes>
152 <outputFileNameMapping>app.jar</outputFileNameMapping>
153 </dependencySet>
154 </dependencySets>
155 </inline>
156 </assembly>
157 </build>
158 </image>
159 <image>
eeginux88c47a22019-04-03 14:28:09 +0000160 <name>${docker.image.prefix}/sdnc-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400161 <build>
162 <cleanup>try</cleanup>
163 <dockerFileDir>docker-files</dockerFileDir>
164 <dockerFile>Dockerfile.so-app</dockerFile>
165 <tags>
166 <tag>${project.version}</tag>
167 <tag>${project.version}-${maven.build.timestamp}</tag>
168 <tag>${project.docker.latesttag.version}</tag>
169 </tags>
170 <assembly>
171 <inline>
172 <dependencySets>
173 <dependencySet>
174 <includes>
175 <include>org.onap.so:mso-sdnc-adapter</include>
176 </includes>
177 <outputFileNameMapping>app.jar</outputFileNameMapping>
178 </dependencySet>
179 </dependencySets>
180 </inline>
181 </assembly>
182 </build>
183 </image>
184 <image>
eeginux88c47a22019-04-03 14:28:09 +0000185 <name>${docker.image.prefix}/openstack-adapter</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400186 <build>
187 <cleanup>try</cleanup>
188 <dockerFileDir>docker-files</dockerFileDir>
189 <dockerFile>Dockerfile.so-app</dockerFile>
190 <tags>
191 <tag>${project.version}</tag>
192 <tag>${project.version}-${maven.build.timestamp}</tag>
193 <tag>${project.docker.latesttag.version}</tag>
194 </tags>
195 <assembly>
196 <inline>
197 <dependencySets>
198 <dependencySet>
199 <includes>
200 <include>org.onap.so:mso-openstack-adapters</include>
201 </includes>
202 <outputFileNameMapping>app.jar</outputFileNameMapping>
203 </dependencySet>
204 </dependencySets>
205 </inline>
206 </assembly>
207 </build>
208 </image>
209 <image>
eeginux88c47a22019-04-03 14:28:09 +0000210 <name>${docker.image.prefix}/vfc-adapter</name>
Rob Daugherty91682972018-08-01 15:20:54 -0400211 <build>
212 <cleanup>try</cleanup>
213 <dockerFileDir>docker-files</dockerFileDir>
214 <dockerFile>Dockerfile.so-app</dockerFile>
215 <tags>
216 <tag>${project.version}</tag>
217 <tag>${project.version}-${maven.build.timestamp}</tag>
218 <tag>${project.docker.latesttag.version}</tag>
219 </tags>
220 <assembly>
221 <inline>
222 <dependencySets>
223 <dependencySet>
224 <includes>
225 <include>org.onap.so.adapters:mso-vfc-adapter</include>
226 </includes>
227 <outputFileNameMapping>app.jar</outputFileNameMapping>
228 </dependencySet>
229 </dependencySets>
230 </inline>
231 </assembly>
232 </build>
233 </image>
234 <image>
eeginux88c47a22019-04-03 14:28:09 +0000235 <name>${docker.image.prefix}/sdc-controller</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400236 <build>
237 <cleanup>try</cleanup>
238 <dockerFileDir>docker-files</dockerFileDir>
239 <dockerFile>Dockerfile.so-app</dockerFile>
240 <tags>
241 <tag>${project.version}</tag>
242 <tag>${project.version}-${maven.build.timestamp}</tag>
243 <tag>${project.docker.latesttag.version}</tag>
244 </tags>
245 <assembly>
246 <inline>
247 <dependencySets>
248 <dependencySet>
249 <includes>
250 <include>org.onap.so:asdc-controller</include>
251 </includes>
252 <outputFileNameMapping>app.jar</outputFileNameMapping>
253 </dependencySet>
254 </dependencySets>
255 </inline>
256 </assembly>
257 </build>
258 </image>
259 <image>
eeginux88c47a22019-04-03 14:28:09 +0000260 <name>${docker.image.prefix}/bpmn-infra</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400261 <build>
262 <cleanup>try</cleanup>
263 <dockerFileDir>docker-files</dockerFileDir>
264 <dockerFile>Dockerfile.so-app</dockerFile>
265 <tags>
266 <tag>${project.version}</tag>
267 <tag>${project.version}-${maven.build.timestamp}</tag>
268 <tag>${project.docker.latesttag.version}</tag>
269 </tags>
270 <assembly>
271 <inline>
272 <dependencySets>
273 <dependencySet>
274 <includes>
275 <include>org.onap.so:mso-infrastructure-bpmn</include>
276 </includes>
277 <outputFileNameMapping>app.jar</outputFileNameMapping>
278 </dependencySet>
279 </dependencySets>
280 </inline>
281 </assembly>
282 </build>
283 </image>
284 <image>
eeginux88c47a22019-04-03 14:28:09 +0000285 <name>${docker.image.prefix}/api-handler-infra</name>
Rob Daughertye8000512018-08-01 00:02:38 -0400286 <build>
287 <cleanup>try</cleanup>
288 <dockerFileDir>docker-files</dockerFileDir>
289 <dockerFile>Dockerfile.so-app</dockerFile>
290 <tags>
291 <tag>${project.version}</tag>
292 <tag>${project.version}-${maven.build.timestamp}</tag>
293 <tag>${project.docker.latesttag.version}</tag>
294 </tags>
295 <assembly>
296 <inline>
297 <dependencySets>
298 <dependencySet>
299 <includes>
300 <include>org.onap.so:mso-api-handler-infra</include>
301 </includes>
302 <outputFileNameMapping>app.jar</outputFileNameMapping>
303 </dependencySet>
304 </dependencySets>
305 </inline>
306 </assembly>
307 </build>
308 </image>
root9b57edd2018-09-17 10:28:05 +0100309 <image>
eeginux88c47a22019-04-03 14:28:09 +0000310 <name>${docker.image.prefix}/so-monitoring</name>
root9b57edd2018-09-17 10:28:05 +0100311 <build>
312 <cleanup>try</cleanup>
313 <dockerFileDir>docker-files</dockerFileDir>
314 <dockerFile>Dockerfile.so-app</dockerFile>
315 <tags>
316 <tag>${project.version}</tag>
317 <tag>${project.version}-${maven.build.timestamp}</tag>
318 <tag>${project.docker.latesttag.version}</tag>
319 </tags>
320 <assembly>
321 <inline>
322 <dependencySets>
323 <dependencySet>
324 <includes>
325 <include>org.onap.so.monitoring:so-monitoring-service</include>
326 </includes>
327 <outputFileNameMapping>app.jar</outputFileNameMapping>
328 </dependencySet>
329 </dependencySets>
330 </inline>
331 </assembly>
332 </build>
333 </image>
ChrisC025301d2017-01-31 11:40:03 +0100334 </images>
335 </configuration>
Rob Daughertye8000512018-08-01 00:02:38 -0400336
ChrisC025301d2017-01-31 11:40:03 +0100337 <executions>
338 <execution>
339 <id>clean-images</id>
340 <phase>pre-clean</phase>
341 <goals>
342 <goal>remove</goal>
343 </goals>
344 <configuration>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100345 <removeAll>true</removeAll>
ChrisC025301d2017-01-31 11:40:03 +0100346 </configuration>
347 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100348
ChrisC025301d2017-01-31 11:40:03 +0100349 <execution>
350 <id>generate-images</id>
351 <phase>generate-sources</phase>
352 <goals>
353 <goal>build</goal>
354 </goals>
355 </execution>
356
357 <execution>
358 <id>push-images</id>
eeginux88c47a22019-04-03 14:28:09 +0000359 <phase>${docker.push.phase}</phase>
ChrisC025301d2017-01-31 11:40:03 +0100360 <goals>
361 <goal>build</goal>
362 <goal>push</goal>
363 </goals>
364 <configuration>
AndrewLamb1373c302019-10-07 15:48:25 +0100365 <image>${docker.image.prefix}/catalog-db-adapter,${docker.image.prefix}/request-db-adapter,${docker.image.prefix}/sdnc-adapter,${docker.image.prefix}/openstack-adapter,${docker.image.prefix}/vfc-adapter,${docker.image.prefix}/sdc-controller,${docker.image.prefix}/bpmn-infra,${docker.image.prefix}/api-handler-infra,${docker.image.prefix}/so-monitoring</image>
ChrisC025301d2017-01-31 11:40:03 +0100366 </configuration>
367 </execution>
368 </executions>
ChrisC025301d2017-01-31 11:40:03 +0100369 </plugin>
370
371 <plugin>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-deploy-plugin</artifactId>
374 <version>2.8</version>
375 <configuration>
376 <skip>true</skip>
377 </configuration>
378 </plugin>
379 </plugins>
380 </build>
381
Rob Daughertye8000512018-08-01 00:02:38 -0400382 <dependencies>
383 <dependency>
384 <groupId>org.onap.so.adapters</groupId>
MichaelMorris8aeffa02019-03-13 17:24:42 +0000385 <artifactId>mso-vnfm-etsi-adapter</artifactId>
386 <version>${project.version}</version>
387 </dependency>
388 <dependency>
389 <groupId>org.onap.so.adapters</groupId>
Rob Daughertye8000512018-08-01 00:02:38 -0400390 <artifactId>mso-catalog-db-adapter</artifactId>
391 <version>${project.version}</version>
392 </dependency>
393 <dependency>
394 <groupId>org.onap.so.adapters</groupId>
395 <artifactId>mso-requests-db-adapter</artifactId>
396 <version>${project.version}</version>
397 </dependency>
398 <dependency>
399 <groupId>org.onap.so</groupId>
400 <artifactId>mso-sdnc-adapter</artifactId>
401 <version>${project.version}</version>
402 </dependency>
403 <dependency>
404 <groupId>org.onap.so</groupId>
405 <artifactId>mso-openstack-adapters</artifactId>
406 <version>${project.version}</version>
407 </dependency>
408 <dependency>
Rob Daugherty91682972018-08-01 15:20:54 -0400409 <groupId>org.onap.so.adapters</groupId>
410 <artifactId>mso-vfc-adapter</artifactId>
411 <version>${project.version}</version>
412 </dependency>
413 <dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400414 <groupId>org.onap.so</groupId>
415 <artifactId>asdc-controller</artifactId>
416 <version>${project.version}</version>
417 </dependency>
418 <dependency>
419 <groupId>org.onap.so</groupId>
420 <artifactId>mso-infrastructure-bpmn</artifactId>
421 <version>${project.version}</version>
422 </dependency>
423 <dependency>
424 <groupId>org.onap.so</groupId>
425 <artifactId>mso-api-handler-infra</artifactId>
426 <version>${project.version}</version>
427 </dependency>
root9b57edd2018-09-17 10:28:05 +0100428 <dependency>
Byung-Woo June9da6d02018-09-25 14:47:28 -0400429 <groupId>org.onap.so.monitoring</groupId>
root9b57edd2018-09-17 10:28:05 +0100430 <artifactId>so-monitoring-service</artifactId>
431 <version>${project.version}</version>
432 </dependency>
Rob Daughertye8000512018-08-01 00:02:38 -0400433 </dependencies>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100434</project>