mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2019-2020 Bell Canada. |
Jim Hahn | 7803acd | 2021-07-19 14:48:59 -0400 | [diff] [blame] | 5 | Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. |
danielhanrahan | a7309ed | 2022-06-28 11:45:15 +0100 | [diff] [blame] | 6 | Modifications Copyright (C) 2022 Nordix Foundation. |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | SPDX-License-Identifier: Apache-2.0 |
| 21 | ============LICENSE_END========================================================= |
| 22 | --> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | <parent> |
| 26 | <groupId>org.onap.policy.apex-pdp.packages</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 27 | <artifactId>apex-packages</artifactId> |
liamfallon | 57fbf69 | 2022-05-03 17:22:02 +0100 | [diff] [blame] | 28 | <version>2.8.0-SNAPSHOT</version> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 29 | </parent> |
| 30 | |
| 31 | <artifactId>apex-pdp-docker</artifactId> |
| 32 | <packaging>pom</packaging> |
| 33 | <name>Policy APEX PDP - Docker build</name> |
| 34 | <description>ONAP Policy APEX PDP Docker Build</description> |
| 35 | |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 36 | <properties> |
| 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 38 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 39 | <dist.project.version>${project.version}</dist.project.version> |
| 40 | <docker.skip>false</docker.skip> |
| 41 | <docker.skip.build>false</docker.skip.build> |
| 42 | <docker.skip.push>false</docker.skip.push> |
danielhanrahan | 765bea3 | 2022-09-01 14:55:46 +0100 | [diff] [blame] | 43 | <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 44 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 45 | </properties> |
| 46 | |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 47 | <build> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 48 | <finalName>${project.artifactId}-${project.version}</finalName> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 49 | <plugins> |
| 50 | <plugin> |
Taka Cho | d4f7ee8 | 2021-08-09 16:12:04 -0400 | [diff] [blame] | 51 | <groupId>org.codehaus.gmaven</groupId> |
| 52 | <artifactId>groovy-maven-plugin</artifactId> |
| 53 | <version>2.1.1</version> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 54 | <executions> |
| 55 | <execution> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 56 | <phase>validate</phase> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 57 | <goals> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 58 | <goal>execute</goal> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 59 | </goals> |
| 60 | <configuration> |
Taka Cho | d4f7ee8 | 2021-08-09 16:12:04 -0400 | [diff] [blame] | 61 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 62 | </configuration> |
| 63 | </execution> |
| 64 | </executions> |
| 65 | </plugin> |
danielhanrahan | a7309ed | 2022-06-28 11:45:15 +0100 | [diff] [blame] | 66 | |
| 67 | <plugin> |
| 68 | <groupId>io.github.git-commit-id</groupId> |
| 69 | <artifactId>git-commit-id-maven-plugin</artifactId> |
| 70 | <version>5.0.0</version> |
| 71 | <executions> |
| 72 | <execution> |
| 73 | <id>get-the-git-infos</id> |
| 74 | <goals> |
| 75 | <goal>revision</goal> |
| 76 | </goals> |
| 77 | <phase>initialize</phase> |
| 78 | </execution> |
| 79 | </executions> |
| 80 | <configuration> |
| 81 | <skipPoms>false</skipPoms> |
| 82 | <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 83 | <includeOnlyProperties> |
| 84 | <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty> |
| 85 | <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty> |
| 86 | </includeOnlyProperties> |
| 87 | <commitIdGenerationMode>full</commitIdGenerationMode> |
| 88 | </configuration> |
| 89 | </plugin> |
| 90 | |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 91 | <plugin> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 92 | <groupId>io.fabric8</groupId> |
| 93 | <artifactId>docker-maven-plugin</artifactId> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 94 | <configuration> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 95 | <verbose>true</verbose> |
| 96 | <apiVersion>1.23</apiVersion> |
| 97 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 98 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 99 | <images> |
| 100 | <image> |
| 101 | <name>onap/policy-apex-pdp</name> |
| 102 | <build> |
| 103 | <cleanup>try</cleanup> |
danielhanrahan | 9848f96 | 2022-05-24 10:06:56 +0100 | [diff] [blame] | 104 | <dockerFile>${dockerFile}</dockerFile> |
danielhanrahan | 765bea3 | 2022-09-01 14:55:46 +0100 | [diff] [blame] | 105 | <contextDir>${docker.contextDir}</contextDir> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 106 | <tags> |
| 107 | <tag>${project.version}</tag> |
| 108 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 109 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 110 | </tags> |
| 111 | <assembly> |
| 112 | <inline> |
| 113 | <dependencySets> |
| 114 | <dependencySet> |
| 115 | <includes> |
| 116 | <include>org.onap.policy.apex-pdp.packages:apex-pdp-package-full</include> |
| 117 | </includes> |
| 118 | <outputDirectory>.</outputDirectory> |
| 119 | <outputFileNameMapping>apex-pdp-package-full.tar.gz</outputFileNameMapping> |
| 120 | </dependencySet> |
| 121 | </dependencySets> |
| 122 | </inline> |
| 123 | </assembly> |
| 124 | </build> |
| 125 | </image> |
| 126 | </images> |
| 127 | </configuration> |
| 128 | <executions> |
| 129 | <execution> |
| 130 | <id>clean-images</id> |
| 131 | <phase>pre-clean</phase> |
| 132 | <goals> |
| 133 | <goal>remove</goal> |
| 134 | </goals> |
| 135 | <configuration> |
| 136 | <removeAll>true</removeAll> |
| 137 | </configuration> |
| 138 | </execution> |
| 139 | <execution> |
| 140 | <id>generate-images</id> |
| 141 | <phase>generate-sources</phase> |
| 142 | <goals> |
| 143 | <goal>build</goal> |
| 144 | </goals> |
| 145 | </execution> |
| 146 | <execution> |
| 147 | <id>push-images</id> |
| 148 | <phase>deploy</phase> |
| 149 | <goals> |
| 150 | <goal>build</goal> |
| 151 | <goal>push</goal> |
| 152 | </goals> |
| 153 | <configuration> |
| 154 | <image>onap/policy-apex-pdp</image> |
| 155 | </configuration> |
| 156 | </execution> |
| 157 | </executions> |
| 158 | </plugin> |
danielhanrahan | a7309ed | 2022-06-28 11:45:15 +0100 | [diff] [blame] | 159 | |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 160 | <plugin> |
| 161 | <groupId>org.apache.maven.plugins</groupId> |
| 162 | <artifactId>maven-deploy-plugin</artifactId> |
| 163 | <configuration> |
| 164 | <skip>true</skip> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 165 | </configuration> |
| 166 | </plugin> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 167 | </plugins> |
| 168 | </build> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 169 | <dependencies> |
| 170 | <dependency> |
| 171 | <groupId>${project.groupId}</groupId> |
| 172 | <artifactId>apex-pdp-package-full</artifactId> |
| 173 | <version>${project.version}</version> |
| 174 | <type>tar.gz</type> |
| 175 | </dependency> |
| 176 | </dependencies> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 177 | </project> |