blob: 5b72b1b504001b5efa3b0bfe4c75d44befb6c281 [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>
saul.gill541d2222023-03-01 12:38:15 +000029 <version>6.4.2-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>
59 <artifactId>policy-clamp-participant-impl-policy</artifactId>
60 <version>${project.version}</version>
61 </dependency>
62 <dependency>
63 <groupId>org.onap.policy.clamp.participant</groupId>
64 <artifactId>policy-clamp-participant-impl-kubernetes</artifactId>
65 <version>${project.version}</version>
66 </dependency>
67 <dependency>
68 <groupId>org.onap.policy.clamp.participant</groupId>
69 <artifactId>policy-clamp-participant-impl-http</artifactId>
70 <version>${project.version}</version>
71 </dependency>
72 <dependency>
73 <groupId>org.onap.policy.clamp.participant</groupId>
aravind.estdf28b0a2023-02-14 09:29:14 +000074 <artifactId>policy-clamp-participant-impl-kserve</artifactId>
75 <version>${project.version}</version>
76 </dependency>
77 <dependency>
78 <groupId>org.onap.policy.clamp.participant</groupId>
aravind.estbf6cc682022-11-21 15:26:58 +000079 <artifactId>policy-clamp-participant-impl-a1pms</artifactId>
80 <version>${project.version}</version>
81 </dependency>
82 <dependency>
83 <groupId>org.onap.policy.clamp.participant</groupId>
liamfallonf24ba3e2022-10-14 13:07:36 +010084 <artifactId>policy-clamp-acm-element-impl</artifactId>
85 <version>${project.version}</version>
86 </dependency>
87 </dependencies>
88
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +010089 <build>
90 <finalName>${project.artifactId}-${project.version}</finalName>
91 <plugins>
92 <plugin>
danielhanrahand2d765b2022-06-29 11:21:27 +010093 <groupId>org.codehaus.gmaven</groupId>
94 <artifactId>groovy-maven-plugin</artifactId>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +010095 <executions>
96 <execution>
97 <phase>validate</phase>
98 <goals>
99 <goal>execute</goal>
100 </goals>
101 <configuration>
danielhanrahand2d765b2022-06-29 11:21:27 +0100102 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107
108 <plugin>
danielhanrahan54c12dd2022-06-28 16:55:46 +0100109 <groupId>io.github.git-commit-id</groupId>
110 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahan54c12dd2022-06-28 16:55:46 +0100111 </plugin>
112
113 <plugin>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100114 <groupId>io.fabric8</groupId>
115 <artifactId>docker-maven-plugin</artifactId>
116
117 <configuration>
118 <verbose>true</verbose>
119 <apiVersion>1.23</apiVersion>
120 <pullRegistry>${docker.pull.registry}</pullRegistry>
121 <pushRegistry>${docker.push.registry}</pushRegistry>
122
123 <images>
124 <image>
liamfallon43098042022-01-25 19:55:43 +0000125 <name>onap/policy-clamp-runtime-acm</name>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100126 <build>
127 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100128 <dockerFile>${docker.clamp-runtime-acm.dockerFile}</dockerFile>
129 <contextDir>${docker.clamp-runtime-acm.contextDir}</contextDir>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100130 <tags>
131 <tag>${project.version}</tag>
132 <tag>${project.version}-${maven.build.timestamp}</tag>
133 <tag>${project.docker.latest.minmax.tag.version}</tag>
134 </tags>
135 <assembly>
136 <inline>
137 <dependencySets>
138 <dependencySet>
139 <includes>
140 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
141 </includes>
142 <outputDirectory>/lib</outputDirectory>
liamfallon43098042022-01-25 19:55:43 +0000143 <outputFileNameMapping>policy-clamp-runtime-acm.tar.gz</outputFileNameMapping>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100144 </dependencySet>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100145 <dependencySet>
146 <includes>
liamfallon43098042022-01-25 19:55:43 +0000147 <include>org.onap.policy.clamp:policy-clamp-runtime-acm</include>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100148 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100149 <outputFileNameMapping>policy-clamp-runtime-acm.jar</outputFileNameMapping>
FrancescoFioraEst252a4bb2021-07-23 15:53:46 +0100150 </dependencySet>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100151 </dependencySets>
152 </inline>
153 </assembly>
154 </build>
155 </image>
156 <image>
liamfallon43098042022-01-25 19:55:43 +0000157 <name>onap/policy-clamp-ac-pf-ppnt</name>
158 <alias>onap-policy-clamp-ac-pf-ppnt</alias>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100159 <build>
160 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100161 <dockerFile>${docker.clamp-ac-pf-ppnt.dockerFile}</dockerFile>
162 <contextDir>${docker.clamp-ac-pf-ppnt.contextDir}</contextDir>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100163 <tags>
164 <tag>${project.version}</tag>
165 <tag>${project.version}-${maven.build.timestamp}</tag>
166 <tag>${project.docker.latest.minmax.tag.version}</tag>
167 </tags>
168 <assembly>
169 <inline>
170 <dependencySets>
171 <dependencySet>
172 <includes>
173 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
174 </includes>
175 <outputDirectory>/lib</outputDirectory>
176 <outputFileNameMapping>policy-participant.tar.gz</outputFileNameMapping>
177 </dependencySet>
178 <dependencySet>
179 <includes>
180 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-policy</include>
181 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100182 <outputFileNameMapping>policy-clamp-participant-impl-policy.jar</outputFileNameMapping>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100183 </dependencySet>
184 </dependencySets>
185 </inline>
186 </assembly>
187 </build>
188 </image>
189 <image>
liamfallon43098042022-01-25 19:55:43 +0000190 <name>onap/policy-clamp-ac-k8s-ppnt</name>
191 <alias>onap-policy-clamp-ac-k8s-ppnt</alias>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100192 <build>
193 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100194 <dockerFile>${docker.clamp-ac-k8s-ppnt.dockerFile}</dockerFile>
195 <contextDir>${docker.clamp-ac-k8s-ppnt.contextDir}</contextDir>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100196 <tags>
197 <tag>${project.version}</tag>
198 <tag>${project.version}-${maven.build.timestamp}</tag>
199 <tag>${project.docker.latest.minmax.tag.version}</tag>
200 </tags>
201 <assembly>
202 <inline>
203 <dependencySets>
204 <dependencySet>
205 <includes>
206 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
207 </includes>
208 <outputDirectory>/lib</outputDirectory>
209 <outputFileNameMapping>kubernetes-participant.tar.gz</outputFileNameMapping>
210 </dependencySet>
211 <dependencySet>
212 <includes>
213 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-kubernetes</include>
214 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100215 <outputFileNameMapping>policy-clamp-participant-impl-kubernetes.jar</outputFileNameMapping>
rameshiyer279ab7dc72021-07-07 08:02:55 +0100216 </dependencySet>
217 </dependencySets>
218 </inline>
219 </assembly>
220 </build>
221 </image>
222 <image>
liamfallon43098042022-01-25 19:55:43 +0000223 <name>onap/policy-clamp-ac-http-ppnt</name>
224 <alias>onap-policy-clamp-ac-http-ppnt</alias>
rameshiyer27befb22b2021-09-06 12:16:56 +0100225 <build>
226 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100227 <dockerFile>${docker.clamp-ac-http-ppnt.dockerFile}</dockerFile>
228 <contextDir>${docker.clamp-ac-http-ppnt.contextDir}</contextDir>
rameshiyer27befb22b2021-09-06 12:16:56 +0100229 <tags>
230 <tag>${project.version}</tag>
231 <tag>${project.version}-${maven.build.timestamp}</tag>
232 <tag>${project.docker.latest.minmax.tag.version}</tag>
233 </tags>
234 <assembly>
235 <inline>
236 <dependencySets>
237 <dependencySet>
238 <includes>
239 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
240 </includes>
241 <outputDirectory>/lib</outputDirectory>
242 <outputFileNameMapping>http-participant.tar.gz</outputFileNameMapping>
243 </dependencySet>
244 <dependencySet>
245 <includes>
246 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-http</include>
247 </includes>
liamfallon8040c952022-05-31 11:22:10 +0100248 <outputFileNameMapping>policy-clamp-participant-impl-http.jar</outputFileNameMapping>
rameshiyer27befb22b2021-09-06 12:16:56 +0100249 </dependencySet>
250 </dependencySets>
251 </inline>
252 </assembly>
253 </build>
254 </image>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100255 <image>
aravind.estbf6cc682022-11-21 15:26:58 +0000256 <name>onap/policy-clamp-ac-a1pms-ppnt</name>
257 <alias>onap-policy-clamp-ac-a1pms-ppnt</alias>
258 <build>
259 <cleanup>try</cleanup>
260 <dockerFile>${docker.clamp-ac-a1pms-ppnt.dockerFile}</dockerFile>
261 <contextDir>${docker.clamp-ac-a1pms-ppnt.contextDir}</contextDir>
262 <tags>
263 <tag>${project.version}</tag>
264 <tag>${project.version}-${maven.build.timestamp}</tag>
265 <tag>${project.docker.latest.minmax.tag.version}</tag>
266 </tags>
267 <assembly>
268 <inline>
269 <dependencySets>
270 <dependencySet>
271 <includes>
272 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
273 </includes>
274 <outputDirectory>/lib</outputDirectory>
275 <outputFileNameMapping>a1pms-participant.tar.gz</outputFileNameMapping>
276 </dependencySet>
277 <dependencySet>
278 <includes>
279 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-a1pms</include>
280 </includes>
281 <outputFileNameMapping>policy-clamp-participant-impl-a1pms.jar</outputFileNameMapping>
282 </dependencySet>
283 </dependencySets>
284 </inline>
285 </assembly>
286 </build>
287 </image>
288 <image>
aravind.estdf28b0a2023-02-14 09:29:14 +0000289 <name>onap/policy-clamp-ac-kserve-ppnt</name>
290 <alias>onap-policy-clamp-ac-kserve-ppnt</alias>
291 <build>
292 <cleanup>try</cleanup>
293 <dockerFile>${docker.clamp-ac-kserve-ppnt.dockerFile}</dockerFile>
294 <contextDir>${docker.clamp-ac-kserve-ppnt.contextDir}</contextDir>
295 <tags>
296 <tag>${project.version}</tag>
297 <tag>${project.version}-${maven.build.timestamp}</tag>
298 <tag>${project.docker.latest.minmax.tag.version}</tag>
299 </tags>
300 <assembly>
301 <inline>
302 <dependencySets>
303 <dependencySet>
304 <includes>
305 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
306 </includes>
307 <outputDirectory>/lib</outputDirectory>
308 <outputFileNameMapping>kserve-participant.tar.gz</outputFileNameMapping>
309 </dependencySet>
310 <dependencySet>
311 <includes>
312 <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-kserve</include>
313 </includes>
314 <outputFileNameMapping>policy-clamp-participant-impl-kserve.jar</outputFileNameMapping>
315 </dependencySet>
316 </dependencySets>
317 </inline>
318 </assembly>
319 </build>
320 </image>
321 <image>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100322 <name>onap/policy-clamp-acm-element-impl</name>
323 <alias>onap-policy-clamp-acm-element-impl</alias>
324 <build>
325 <cleanup>try</cleanup>
danielhanrahan36af1672022-09-02 13:07:33 +0100326 <dockerFile>${docker.clamp-acm-element-impl.dockerFile}</dockerFile>
327 <contextDir>${docker.clamp-acm-element-impl.contextDir}</contextDir>
FrancescoFioraEst36f4ee42022-08-02 11:53:48 +0100328 <tags>
329 <tag>${project.version}</tag>
330 <tag>${project.version}-${maven.build.timestamp}</tag>
331 <tag>${project.docker.latest.minmax.tag.version}</tag>
332 </tags>
333 <assembly>
334 <inline>
335 <dependencySets>
336 <dependencySet>
337 <includes>
338 <include>org.onap.policy.clamp:policy-clamp-tarball</include>
339 </includes>
340 <outputDirectory>/lib</outputDirectory>
341 <outputFileNameMapping>element-participant.tar.gz</outputFileNameMapping>
342 </dependencySet>
343 <dependencySet>
344 <includes>
345 <include>org.onap.policy.clamp.participant:policy-clamp-acm-element-impl</include>
346 </includes>
347 <outputFileNameMapping>policy-clamp-acm-element-impl.jar</outputFileNameMapping>
348 </dependencySet>
349 </dependencySets>
350 </inline>
351 </assembly>
352 </build>
353 </image>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100354 </images>
355 </configuration>
356
357 <executions>
358 <execution>
359 <id>clean-images</id>
360 <phase>pre-clean</phase>
361 <goals>
362 <goal>remove</goal>
363 </goals>
364 <configuration>
365 <removeAll>true</removeAll>
366 </configuration>
367 </execution>
368
369 <execution>
370 <id>generate-images</id>
371 <phase>generate-sources</phase>
372 <goals>
373 <goal>build</goal>
374 </goals>
375 </execution>
376
377 <execution>
378 <id>push-images</id>
379 <phase>deploy</phase>
380 <goals>
381 <goal>build</goal>
382 <goal>push</goal>
383 </goals>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100384 </execution>
385 </executions>
386 </plugin>
387
388 <plugin>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-deploy-plugin</artifactId>
391 <configuration>
392 <skip>true</skip>
393 </configuration>
394 </plugin>
395 </plugins>
396 </build>
Sirisha_Manchikanti18526e92021-06-01 16:48:25 +0100397</project>