Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
danielhanrahan | 023b63a | 2022-06-01 17:34:54 +0100 | [diff] [blame] | 3 | Copyright (C) 2021-2022 Nordix Foundation. |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 4 | ================================================================================ |
| 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> |
liamfallon | 9fa11a0 | 2022-05-03 17:22:19 +0100 | [diff] [blame] | 29 | <version>6.3.0-SNAPSHOT</version> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 30 | </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> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 46 | <docker.clamp-runtime-acm.dockerFile>AcmRuntime.Dockerfile</docker.clamp-runtime-acm.dockerFile> |
| 47 | <docker.clamp-runtime-acm.contextDir>${project.basedir}/src/main/docker</docker.clamp-runtime-acm.contextDir> |
| 48 | <docker.clamp-ac-pf-ppnt.dockerFile>PolicyParticipant.Dockerfile</docker.clamp-ac-pf-ppnt.dockerFile> |
| 49 | <docker.clamp-ac-pf-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-pf-ppnt.contextDir> |
| 50 | <docker.clamp-ac-k8s-ppnt.dockerFile>KubernetesParticipant.Dockerfile</docker.clamp-ac-k8s-ppnt.dockerFile> |
| 51 | <docker.clamp-ac-k8s-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-k8s-ppnt.contextDir> |
| 52 | <docker.clamp-ac-http-ppnt.dockerFile>HttpParticipant.Dockerfile</docker.clamp-ac-http-ppnt.dockerFile> |
| 53 | <docker.clamp-ac-http-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-http-ppnt.contextDir> |
| 54 | <docker.clamp-acm-element-impl.dockerFile>ElementParticipant.Dockerfile</docker.clamp-acm-element-impl.dockerFile> |
| 55 | <docker.clamp-acm-element-impl.contextDir>${project.basedir}/src/main/docker</docker.clamp-acm-element-impl.contextDir> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 56 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 57 | </properties> |
| 58 | |
| 59 | <build> |
| 60 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 61 | <plugins> |
| 62 | <plugin> |
danielhanrahan | d2d765b | 2022-06-29 11:21:27 +0100 | [diff] [blame] | 63 | <groupId>org.codehaus.gmaven</groupId> |
| 64 | <artifactId>groovy-maven-plugin</artifactId> |
| 65 | <version>2.1.1</version> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 66 | <executions> |
| 67 | <execution> |
| 68 | <phase>validate</phase> |
| 69 | <goals> |
| 70 | <goal>execute</goal> |
| 71 | </goals> |
| 72 | <configuration> |
danielhanrahan | d2d765b | 2022-06-29 11:21:27 +0100 | [diff] [blame] | 73 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 74 | </configuration> |
| 75 | </execution> |
| 76 | </executions> |
| 77 | </plugin> |
| 78 | |
| 79 | <plugin> |
danielhanrahan | 54c12dd | 2022-06-28 16:55:46 +0100 | [diff] [blame] | 80 | <groupId>io.github.git-commit-id</groupId> |
| 81 | <artifactId>git-commit-id-maven-plugin</artifactId> |
| 82 | <version>5.0.0</version> |
| 83 | <executions> |
| 84 | <execution> |
| 85 | <id>get-the-git-infos</id> |
| 86 | <goals> |
| 87 | <goal>revision</goal> |
| 88 | </goals> |
| 89 | <phase>initialize</phase> |
| 90 | </execution> |
| 91 | </executions> |
| 92 | <configuration> |
| 93 | <skipPoms>false</skipPoms> |
| 94 | <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 95 | <includeOnlyProperties> |
| 96 | <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty> |
| 97 | <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty> |
| 98 | </includeOnlyProperties> |
| 99 | <commitIdGenerationMode>full</commitIdGenerationMode> |
| 100 | </configuration> |
| 101 | </plugin> |
| 102 | |
| 103 | <plugin> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 104 | <groupId>io.fabric8</groupId> |
| 105 | <artifactId>docker-maven-plugin</artifactId> |
| 106 | |
| 107 | <configuration> |
| 108 | <verbose>true</verbose> |
| 109 | <apiVersion>1.23</apiVersion> |
| 110 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 111 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 112 | |
| 113 | <images> |
| 114 | <image> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 115 | <name>onap/policy-clamp-runtime-acm</name> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 116 | <build> |
| 117 | <cleanup>try</cleanup> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 118 | <dockerFile>${docker.clamp-runtime-acm.dockerFile}</dockerFile> |
| 119 | <contextDir>${docker.clamp-runtime-acm.contextDir}</contextDir> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 120 | <tags> |
| 121 | <tag>${project.version}</tag> |
| 122 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 123 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 124 | </tags> |
| 125 | <assembly> |
| 126 | <inline> |
| 127 | <dependencySets> |
| 128 | <dependencySet> |
| 129 | <includes> |
| 130 | <include>org.onap.policy.clamp:policy-clamp-tarball</include> |
| 131 | </includes> |
| 132 | <outputDirectory>/lib</outputDirectory> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 133 | <outputFileNameMapping>policy-clamp-runtime-acm.tar.gz</outputFileNameMapping> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 134 | </dependencySet> |
FrancescoFioraEst | 252a4bb | 2021-07-23 15:53:46 +0100 | [diff] [blame] | 135 | <dependencySet> |
| 136 | <includes> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 137 | <include>org.onap.policy.clamp:policy-clamp-runtime-acm</include> |
FrancescoFioraEst | 252a4bb | 2021-07-23 15:53:46 +0100 | [diff] [blame] | 138 | </includes> |
liamfallon | 8040c95 | 2022-05-31 11:22:10 +0100 | [diff] [blame] | 139 | <outputFileNameMapping>policy-clamp-runtime-acm.jar</outputFileNameMapping> |
FrancescoFioraEst | 252a4bb | 2021-07-23 15:53:46 +0100 | [diff] [blame] | 140 | </dependencySet> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 141 | </dependencySets> |
| 142 | </inline> |
| 143 | </assembly> |
| 144 | </build> |
| 145 | </image> |
| 146 | <image> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 147 | <name>onap/policy-clamp-ac-pf-ppnt</name> |
| 148 | <alias>onap-policy-clamp-ac-pf-ppnt</alias> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 149 | <build> |
| 150 | <cleanup>try</cleanup> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 151 | <dockerFile>${docker.clamp-ac-pf-ppnt.dockerFile}</dockerFile> |
| 152 | <contextDir>${docker.clamp-ac-pf-ppnt.contextDir}</contextDir> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 153 | <tags> |
| 154 | <tag>${project.version}</tag> |
| 155 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 156 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 157 | </tags> |
| 158 | <assembly> |
| 159 | <inline> |
| 160 | <dependencySets> |
| 161 | <dependencySet> |
| 162 | <includes> |
| 163 | <include>org.onap.policy.clamp:policy-clamp-tarball</include> |
| 164 | </includes> |
| 165 | <outputDirectory>/lib</outputDirectory> |
| 166 | <outputFileNameMapping>policy-participant.tar.gz</outputFileNameMapping> |
| 167 | </dependencySet> |
| 168 | <dependencySet> |
| 169 | <includes> |
| 170 | <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-policy</include> |
| 171 | </includes> |
liamfallon | 8040c95 | 2022-05-31 11:22:10 +0100 | [diff] [blame] | 172 | <outputFileNameMapping>policy-clamp-participant-impl-policy.jar</outputFileNameMapping> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 173 | </dependencySet> |
| 174 | </dependencySets> |
| 175 | </inline> |
| 176 | </assembly> |
| 177 | </build> |
| 178 | </image> |
| 179 | <image> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 180 | <name>onap/policy-clamp-ac-k8s-ppnt</name> |
| 181 | <alias>onap-policy-clamp-ac-k8s-ppnt</alias> |
rameshiyer27 | 9ab7dc7 | 2021-07-07 08:02:55 +0100 | [diff] [blame] | 182 | <build> |
| 183 | <cleanup>try</cleanup> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 184 | <dockerFile>${docker.clamp-ac-k8s-ppnt.dockerFile}</dockerFile> |
| 185 | <contextDir>${docker.clamp-ac-k8s-ppnt.contextDir}</contextDir> |
rameshiyer27 | 9ab7dc7 | 2021-07-07 08:02:55 +0100 | [diff] [blame] | 186 | <tags> |
| 187 | <tag>${project.version}</tag> |
| 188 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 189 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 190 | </tags> |
| 191 | <assembly> |
| 192 | <inline> |
| 193 | <dependencySets> |
| 194 | <dependencySet> |
| 195 | <includes> |
| 196 | <include>org.onap.policy.clamp:policy-clamp-tarball</include> |
| 197 | </includes> |
| 198 | <outputDirectory>/lib</outputDirectory> |
| 199 | <outputFileNameMapping>kubernetes-participant.tar.gz</outputFileNameMapping> |
| 200 | </dependencySet> |
| 201 | <dependencySet> |
| 202 | <includes> |
| 203 | <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-kubernetes</include> |
| 204 | </includes> |
liamfallon | 8040c95 | 2022-05-31 11:22:10 +0100 | [diff] [blame] | 205 | <outputFileNameMapping>policy-clamp-participant-impl-kubernetes.jar</outputFileNameMapping> |
rameshiyer27 | 9ab7dc7 | 2021-07-07 08:02:55 +0100 | [diff] [blame] | 206 | </dependencySet> |
| 207 | </dependencySets> |
| 208 | </inline> |
| 209 | </assembly> |
| 210 | </build> |
| 211 | </image> |
| 212 | <image> |
liamfallon | 4309804 | 2022-01-25 19:55:43 +0000 | [diff] [blame] | 213 | <name>onap/policy-clamp-ac-http-ppnt</name> |
| 214 | <alias>onap-policy-clamp-ac-http-ppnt</alias> |
rameshiyer27 | befb22b | 2021-09-06 12:16:56 +0100 | [diff] [blame] | 215 | <build> |
| 216 | <cleanup>try</cleanup> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 217 | <dockerFile>${docker.clamp-ac-http-ppnt.dockerFile}</dockerFile> |
| 218 | <contextDir>${docker.clamp-ac-http-ppnt.contextDir}</contextDir> |
rameshiyer27 | befb22b | 2021-09-06 12:16:56 +0100 | [diff] [blame] | 219 | <tags> |
| 220 | <tag>${project.version}</tag> |
| 221 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 222 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 223 | </tags> |
| 224 | <assembly> |
| 225 | <inline> |
| 226 | <dependencySets> |
| 227 | <dependencySet> |
| 228 | <includes> |
| 229 | <include>org.onap.policy.clamp:policy-clamp-tarball</include> |
| 230 | </includes> |
| 231 | <outputDirectory>/lib</outputDirectory> |
| 232 | <outputFileNameMapping>http-participant.tar.gz</outputFileNameMapping> |
| 233 | </dependencySet> |
| 234 | <dependencySet> |
| 235 | <includes> |
| 236 | <include>org.onap.policy.clamp.participant:policy-clamp-participant-impl-http</include> |
| 237 | </includes> |
liamfallon | 8040c95 | 2022-05-31 11:22:10 +0100 | [diff] [blame] | 238 | <outputFileNameMapping>policy-clamp-participant-impl-http.jar</outputFileNameMapping> |
rameshiyer27 | befb22b | 2021-09-06 12:16:56 +0100 | [diff] [blame] | 239 | </dependencySet> |
| 240 | </dependencySets> |
| 241 | </inline> |
| 242 | </assembly> |
| 243 | </build> |
| 244 | </image> |
FrancescoFioraEst | 36f4ee4 | 2022-08-02 11:53:48 +0100 | [diff] [blame] | 245 | <image> |
| 246 | <name>onap/policy-clamp-acm-element-impl</name> |
| 247 | <alias>onap-policy-clamp-acm-element-impl</alias> |
| 248 | <build> |
| 249 | <cleanup>try</cleanup> |
danielhanrahan | 36af167 | 2022-09-02 13:07:33 +0100 | [diff] [blame] | 250 | <dockerFile>${docker.clamp-acm-element-impl.dockerFile}</dockerFile> |
| 251 | <contextDir>${docker.clamp-acm-element-impl.contextDir}</contextDir> |
FrancescoFioraEst | 36f4ee4 | 2022-08-02 11:53:48 +0100 | [diff] [blame] | 252 | <tags> |
| 253 | <tag>${project.version}</tag> |
| 254 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 255 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 256 | </tags> |
| 257 | <assembly> |
| 258 | <inline> |
| 259 | <dependencySets> |
| 260 | <dependencySet> |
| 261 | <includes> |
| 262 | <include>org.onap.policy.clamp:policy-clamp-tarball</include> |
| 263 | </includes> |
| 264 | <outputDirectory>/lib</outputDirectory> |
| 265 | <outputFileNameMapping>element-participant.tar.gz</outputFileNameMapping> |
| 266 | </dependencySet> |
| 267 | <dependencySet> |
| 268 | <includes> |
| 269 | <include>org.onap.policy.clamp.participant:policy-clamp-acm-element-impl</include> |
| 270 | </includes> |
| 271 | <outputFileNameMapping>policy-clamp-acm-element-impl.jar</outputFileNameMapping> |
| 272 | </dependencySet> |
| 273 | </dependencySets> |
| 274 | </inline> |
| 275 | </assembly> |
| 276 | </build> |
| 277 | </image> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 278 | </images> |
| 279 | </configuration> |
| 280 | |
| 281 | <executions> |
| 282 | <execution> |
| 283 | <id>clean-images</id> |
| 284 | <phase>pre-clean</phase> |
| 285 | <goals> |
| 286 | <goal>remove</goal> |
| 287 | </goals> |
| 288 | <configuration> |
| 289 | <removeAll>true</removeAll> |
| 290 | </configuration> |
| 291 | </execution> |
| 292 | |
| 293 | <execution> |
| 294 | <id>generate-images</id> |
| 295 | <phase>generate-sources</phase> |
| 296 | <goals> |
| 297 | <goal>build</goal> |
| 298 | </goals> |
| 299 | </execution> |
| 300 | |
| 301 | <execution> |
| 302 | <id>push-images</id> |
| 303 | <phase>deploy</phase> |
| 304 | <goals> |
| 305 | <goal>build</goal> |
| 306 | <goal>push</goal> |
| 307 | </goals> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 308 | </execution> |
| 309 | </executions> |
| 310 | </plugin> |
| 311 | |
| 312 | <plugin> |
| 313 | <groupId>org.apache.maven.plugins</groupId> |
| 314 | <artifactId>maven-deploy-plugin</artifactId> |
| 315 | <configuration> |
| 316 | <skip>true</skip> |
| 317 | </configuration> |
| 318 | </plugin> |
| 319 | </plugins> |
| 320 | </build> |
| 321 | |
| 322 | <dependencies> |
| 323 | <dependency> |
| 324 | <groupId>org.onap.policy.clamp</groupId> |
| 325 | <artifactId>policy-clamp-tarball</artifactId> |
| 326 | <version>${project.version}</version> |
| 327 | <classifier>tarball</classifier> |
| 328 | <type>tar.gz</type> |
| 329 | </dependency> |
| 330 | <dependency> |
| 331 | <groupId>org.onap.policy.clamp.participant</groupId> |
| 332 | <artifactId>policy-clamp-participant-impl-policy</artifactId> |
| 333 | <version>${project.version}</version> |
| 334 | </dependency> |
| 335 | <dependency> |
| 336 | <groupId>org.onap.policy.clamp.participant</groupId> |
rameshiyer27 | 9ab7dc7 | 2021-07-07 08:02:55 +0100 | [diff] [blame] | 337 | <artifactId>policy-clamp-participant-impl-kubernetes</artifactId> |
| 338 | <version>${project.version}</version> |
| 339 | </dependency> |
rameshiyer27 | befb22b | 2021-09-06 12:16:56 +0100 | [diff] [blame] | 340 | <dependency> |
| 341 | <groupId>org.onap.policy.clamp.participant</groupId> |
| 342 | <artifactId>policy-clamp-participant-impl-http</artifactId> |
| 343 | <version>${project.version}</version> |
| 344 | </dependency> |
FrancescoFioraEst | 36f4ee4 | 2022-08-02 11:53:48 +0100 | [diff] [blame] | 345 | <dependency> |
| 346 | <groupId>org.onap.policy.clamp.participant</groupId> |
| 347 | <artifactId>policy-clamp-acm-element-impl</artifactId> |
| 348 | <version>${project.version}</version> |
| 349 | </dependency> |
Sirisha_Manchikanti | 18526e9 | 2021-06-01 16:48:25 +0100 | [diff] [blame] | 350 | </dependencies> |
| 351 | </project> |