blob: a0afe11228eb0f5effdb3bf2d10e41cb6250005b [file] [log] [blame]
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +01001<!--
2 ============LICENSE_START=======================================================
liamfallon0e405f32023-02-17 19:15:16 +00003 Copyright (C) 2021-2023 Nordix Foundation.
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +01004 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
19-->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
27 <groupId>org.onap.policy.clamp</groupId>
28 <artifactId>clamp-packages</artifactId>
liamfallon8e6aa422023-05-25 09:41:35 +010029 <version>7.0.0-SNAPSHOT</version>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +010030 </parent>
31
32 <packaging>pom</packaging>
33 <artifactId>policy-clamp-docker</artifactId>
34 <name>${project.artifactId}</name>
35 <description>Policy clamp docker image</description>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <dist.project.version>${project.version}</dist.project.version>
41 <docker.skip>false</docker.skip>
42 <docker.skip.build>false</docker.skip.build>
43 <docker.skip.push>false</docker.skip.push>
44 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
45 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
46 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
47 </properties>
48
liamfallonf24ba3e2022-10-14 13:07:36 +010049 <dependencies>
50 <dependency>
51 <groupId>org.onap.policy.clamp</groupId>
52 <artifactId>policy-clamp-tarball</artifactId>
53 <version>${project.version}</version>
54 <classifier>tarball</classifier>
55 <type>tar.gz</type>
56 </dependency>
57 <dependency>
58 <groupId>org.onap.policy.clamp.participant</groupId>
FrancescoFioraEstc50ee572023-06-13 17:05:39 +010059 <artifactId>policy-clamp-participant-impl-simulator</artifactId>
60 <version>${project.version}</version>
61 </dependency>
62 <dependency>
63 <groupId>org.onap.policy.clamp.participant</groupId>
liamfallonf24ba3e2022-10-14 13:07:36 +010064 <artifactId>policy-clamp-participant-impl-policy</artifactId>
65 <version>${project.version}</version>
66 </dependency>
67 <dependency>
68 <groupId>org.onap.policy.clamp.participant</groupId>
69 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
70 <version>${project.version}</version>
71 </dependency>
72 <dependency>
73 <groupId>org.onap.policy.clamp.participant</groupId>
74 <artifactId>policy-clamp-participant-impl-http</artifactId>
75 <version>${project.version}</version>
76 </dependency>
77 <dependency>
78 <groupId>org.onap.policy.clamp.participant</groupId>
aravind.estdf28b0a2023-02-14 09:29:14 +000079 <artifactId>policy-clamp-participant-impl-kserve</artifactId>
80 <version>${project.version}</version>
81 </dependency>
82 <dependency>
83 <groupId>org.onap.policy.clamp.participant</groupId>
aravind.estbf6cc682022-11-21 15:26:58 +000084 <artifactId>policy-clamp-participant-impl-a1pms</artifactId>
85 <version>${project.version}</version>
86 </dependency>
87 <dependency>
88 <groupId>org.onap.policy.clamp.participant</groupId>
liamfallonf24ba3e2022-10-14 13:07:36 +010089 <artifactId>policy-clamp-acm-element-impl</artifactId>
90 <version>${project.version}</version>
91 </dependency>
92 </dependencies>
93
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +010094 <build>
95 <finalName>${project.artifactId}-${project.version}</finalName>
96 <plugins>
97 <plugin>
danielhanrahand2d765b2022-06-29 11:21:27 +010098 <groupId>org.codehaus.gmaven</groupId>
99 <artifactId>groovy-maven-plugin</artifactId>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100100 <executions>
101 <execution>
102 <phase>validate</phase>
103 <goals>
104 <goal>execute</goal>
105 </goals>
106 <configuration>
danielhanrahand2d765b2022-06-29 11:21:27 +0100107 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100108 </configuration>
109 </execution>
110 </executions>
111 </plugin>
112
113 <plugin>
danielhanrahan54c12dd2022-06-28 16:55:46 +0100114 <groupId>io.github.git-commit-id</groupId>
115 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahan54c12dd2022-06-28 16:55:46 +0100116 </plugin>
117
118 <plugin>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100119 <groupId>io.fabric8</groupId>
120 <artifactId>docker-maven-plugin</artifactId>
121
122 <configuration>
123 <verbose>true</verbose>
124 <apiVersion>1.23</apiVersion>
125 <pullRegistry>${docker.pull.registry}</pullRegistry>
126 <pushRegistry>${docker.push.registry}</pushRegistry>
127
128 <images>
129 <image>
liamfallon43098042022-01-25 19:55:43 +0000130 <name>onap/policy-clamp-runtime-acm</name>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100131 <build>
132 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100133 <dockerFile>${docker.clamp-runtime-acm.dockerFile}</dockerFile>
134 <contextDir>${docker.clamp-runtime-acm.contextDir}</contextDir>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100135 <tags>
136 <tag>${project.version}</tag>
137 <tag>${project.version}-${maven.build.timestamp}</tag>
138 <tag>${project.docker.latest.minmax.tag.version}</tag>
139 </tags>
140 <assembly>
141 <inline>
142 <dependencySets>
143 <dependencySet>
144 <includes>
145 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
146 </includes>
147 <outputDirectory>/lib</outputDirectory>
liamfallon43098042022-01-25 19:55:43 +0000148 <outputFileNameMapping>policy-clamp-runtime-acm.tar.gz</outputFileNameMapping>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100149 </dependencySet>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100150 <dependencySet>
151 <includes>
liamfallon43098042022-01-25 19:55:43 +0000152 <include>org.onap.policy.clamp:policy-clamp-runtime-acm</include>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100153 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100154 <outputFileNameMapping>policy-clamp-runtime-acm.jar</outputFileNameMapping>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100155 </dependencySet>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100156 </dependencySets>
157 </inline>
158 </assembly>
159 </build>
160 </image>
161 <image>
liamfallon43098042022-01-25 19:55:43 +0000162 <name>onap/policy-clamp-ac-pf-ppnt</name>
163 <alias>onap-policy-clamp-ac-pf-ppnt</alias>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100164 <build>
165 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100166 <dockerFile>${docker.clamp-ac-pf-ppnt.dockerFile}</dockerFile>
167 <contextDir>${docker.clamp-ac-pf-ppnt.contextDir}</contextDir>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100168 <tags>
169 <tag>${project.version}</tag>
170 <tag>${project.version}-${maven.build.timestamp}</tag>
171 <tag>${project.docker.latest.minmax.tag.version}</tag>
172 </tags>
173 <assembly>
174 <inline>
175 <dependencySets>
176 <dependencySet>
177 <includes>
178 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
179 </includes>
180 <outputDirectory>/lib</outputDirectory>
181 <outputFileNameMapping>policy-participant.tar.gz</outputFileNameMapping>
182 </dependencySet>
183 <dependencySet>
184 <includes>
185 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-policy</include>
186 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100187 <outputFileNameMapping>policy-clamp-participant-impl-policy.jar</outputFileNameMapping>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100188 </dependencySet>
189 </dependencySets>
190 </inline>
191 </assembly>
192 </build>
193 </image>
194 <image>
liamfallon43098042022-01-25 19:55:43 +0000195 <name>onap/policy-clamp-ac-k8s-ppnt</name>
196 <alias>onap-policy-clamp-ac-k8s-ppnt</alias>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100197 <build>
198 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100199 <dockerFile>${docker.clamp-ac-k8s-ppnt.dockerFile}</dockerFile>
200 <contextDir>${docker.clamp-ac-k8s-ppnt.contextDir}</contextDir>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100201 <tags>
202 <tag>${project.version}</tag>
203 <tag>${project.version}-${maven.build.timestamp}</tag>
204 <tag>${project.docker.latest.minmax.tag.version}</tag>
205 </tags>
206 <assembly>
207 <inline>
208 <dependencySets>
209 <dependencySet>
210 <includes>
211 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
212 </includes>
213 <outputDirectory>/lib</outputDirectory>
214 <outputFileNameMapping>kubernetes-participant.tar.gz</outputFileNameMapping>
215 </dependencySet>
216 <dependencySet>
217 <includes>
218 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-kubernetes</include>
219 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100220 <outputFileNameMapping>policy-clamp-participant-impl-kubernetes.jar</outputFileNameMapping>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100221 </dependencySet>
222 </dependencySets>
223 </inline>
224 </assembly>
225 </build>
226 </image>
227 <image>
liamfallon43098042022-01-25 19:55:43 +0000228 <name>onap/policy-clamp-ac-http-ppnt</name>
229 <alias>onap-policy-clamp-ac-http-ppnt</alias>
rameshiyer27befb22b2021-09-06 12:16:56 +0100230 <build>
231 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100232 <dockerFile>${docker.clamp-ac-http-ppnt.dockerFile}</dockerFile>
233 <contextDir>${docker.clamp-ac-http-ppnt.contextDir}</contextDir>
rameshiyer27befb22b2021-09-06 12:16:56 +0100234 <tags>
235 <tag>${project.version}</tag>
236 <tag>${project.version}-${maven.build.timestamp}</tag>
237 <tag>${project.docker.latest.minmax.tag.version}</tag>
238 </tags>
239 <assembly>
240 <inline>
241 <dependencySets>
242 <dependencySet>
243 <includes>
244 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
245 </includes>
246 <outputDirectory>/lib</outputDirectory>
247 <outputFileNameMapping>http-participant.tar.gz</outputFileNameMapping>
248 </dependencySet>
249 <dependencySet>
250 <includes>
251 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-http</include>
252 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100253 <outputFileNameMapping>policy-clamp-participant-impl-http.jar</outputFileNameMapping>
rameshiyer27befb22b2021-09-06 12:16:56 +0100254 </dependencySet>
255 </dependencySets>
256 </inline>
257 </assembly>
258 </build>
259 </image>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100260 <image>
aravind.estbf6cc682022-11-21 15:26:58 +0000261 <name>onap/policy-clamp-ac-a1pms-ppnt</name>
262 <alias>onap-policy-clamp-ac-a1pms-ppnt</alias>
263 <build>
264 <cleanup>try</cleanup>
265 <dockerFile>${docker.clamp-ac-a1pms-ppnt.dockerFile}</dockerFile>
266 <contextDir>${docker.clamp-ac-a1pms-ppnt.contextDir}</contextDir>
267 <tags>
268 <tag>${project.version}</tag>
269 <tag>${project.version}-${maven.build.timestamp}</tag>
270 <tag>${project.docker.latest.minmax.tag.version}</tag>
271 </tags>
272 <assembly>
273 <inline>
274 <dependencySets>
275 <dependencySet>
276 <includes>
277 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
278 </includes>
279 <outputDirectory>/lib</outputDirectory>
280 <outputFileNameMapping>a1pms-participant.tar.gz</outputFileNameMapping>
281 </dependencySet>
282 <dependencySet>
283 <includes>
284 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-a1pms</include>
285 </includes>
286 <outputFileNameMapping>policy-clamp-participant-impl-a1pms.jar</outputFileNameMapping>
287 </dependencySet>
288 </dependencySets>
289 </inline>
290 </assembly>
291 </build>
292 </image>
293 <image>
aravind.estdf28b0a2023-02-14 09:29:14 +0000294 <name>onap/policy-clamp-ac-kserve-ppnt</name>
295 <alias>onap-policy-clamp-ac-kserve-ppnt</alias>
296 <build>
297 <cleanup>try</cleanup>
298 <dockerFile>${docker.clamp-ac-kserve-ppnt.dockerFile}</dockerFile>
299 <contextDir>${docker.clamp-ac-kserve-ppnt.contextDir}</contextDir>
300 <tags>
301 <tag>${project.version}</tag>
302 <tag>${project.version}-${maven.build.timestamp}</tag>
303 <tag>${project.docker.latest.minmax.tag.version}</tag>
304 </tags>
305 <assembly>
306 <inline>
307 <dependencySets>
308 <dependencySet>
309 <includes>
310 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
311 </includes>
312 <outputDirectory>/lib</outputDirectory>
313 <outputFileNameMapping>kserve-participant.tar.gz</outputFileNameMapping>
314 </dependencySet>
315 <dependencySet>
316 <includes>
317 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-kserve</include>
318 </includes>
319 <outputFileNameMapping>policy-clamp-participant-impl-kserve.jar</outputFileNameMapping>
320 </dependencySet>
321 </dependencySets>
322 </inline>
323 </assembly>
324 </build>
325 </image>
326 <image>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100327 <name>onap/policy-clamp-acm-element-impl</name>
328 <alias>onap-policy-clamp-acm-element-impl</alias>
329 <build>
330 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100331 <dockerFile>${docker.clamp-acm-element-impl.dockerFile}</dockerFile>
332 <contextDir>${docker.clamp-acm-element-impl.contextDir}</contextDir>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100333 <tags>
334 <tag>${project.version}</tag>
335 <tag>${project.version}-${maven.build.timestamp}</tag>
336 <tag>${project.docker.latest.minmax.tag.version}</tag>
337 </tags>
338 <assembly>
339 <inline>
340 <dependencySets>
341 <dependencySet>
342 <includes>
343 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
344 </includes>
345 <outputDirectory>/lib</outputDirectory>
346 <outputFileNameMapping>element-participant.tar.gz</outputFileNameMapping>
347 </dependencySet>
348 <dependencySet>
349 <includes>
350 <include>org.onap.policy.clamp.participant:policy-clamp-acm-element-impl</include>
351 </includes>
352 <outputFileNameMapping>policy-clamp-acm-element-impl.jar</outputFileNameMapping>
353 </dependencySet>
354 </dependencySets>
355 </inline>
356 </assembly>
357 </build>
358 </image>
FrancescoFioraEstc50ee572023-06-13 17:05:39 +0100359 <image>
360 <name>onap/policy-clamp-ac-sim-ppnt</name>
361 <alias>onap-policy-clamp-ac-sim-ppnt</alias>
362 <build>
363 <cleanup>try</cleanup>
364 <dockerFile>${docker.clamp-ac-sim-ppnt.dockerFile}</dockerFile>
365 <contextDir>${docker.clamp-ac-sim-ppnt.contextDir}</contextDir>
366 <tags>
367 <tag>${project.version}</tag>
368 <tag>${project.version}-${maven.build.timestamp}</tag>
369 <tag>${project.docker.latest.minmax.tag.version}</tag>
370 </tags>
371 <assembly>
372 <inline>
373 <dependencySets>
374 <dependencySet>
375 <includes>
376 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
377 </includes>
378 <outputDirectory>/lib</outputDirectory>
379 <outputFileNameMapping>sim-participant.tar.gz</outputFileNameMapping>
380 </dependencySet>
381 <dependencySet>
382 <includes>
383 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-simulator</include>
384 </includes>
385 <outputFileNameMapping>policy-clamp-participant-impl-sim.jar</outputFileNameMapping>
386 </dependencySet>
387 </dependencySets>
388 </inline>
389 </assembly>
390 </build>
391 </image>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100392 </images>
393 </configuration>
394
395 <executions>
396 <execution>
397 <id>clean-images</id>
398 <phase>pre-clean</phase>
399 <goals>
400 <goal>remove</goal>
401 </goals>
402 <configuration>
403 <removeAll>true</removeAll>
404 </configuration>
405 </execution>
406
407 <execution>
408 <id>generate-images</id>
409 <phase>generate-sources</phase>
410 <goals>
411 <goal>build</goal>
412 </goals>
413 </execution>
414
415 <execution>
416 <id>push-images</id>
417 <phase>deploy</phase>
418 <goals>
419 <goal>build</goal>
420 <goal>push</goal>
421 </goals>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100422 </execution>
423 </executions>
424 </plugin>
425
426 <plugin>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-deploy-plugin</artifactId>
429 <configuration>
430 <skip>true</skip>
431 </configuration>
432 </plugin>
433 </plugins>
434 </build>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100435</project>