Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
Dmitry Puzikov | c8e918d | 2019-04-02 10:05:05 +0200 | [diff] [blame] | 3 | Copyright (C) 2019 Ericsson, Tieto. All rights reserved. |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
danielhanrahan | cf99a6b | 2022-06-28 17:39:32 +0100 | [diff] [blame] | 5 | Modifications Copyright (C) 2022 Nordix Foundation. |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | SPDX-License-Identifier: Apache-2.0 |
| 20 | ============LICENSE_END========================================================= |
| 21 | --> |
| 22 | |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [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"> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 24 | |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | |
| 27 | <parent> |
| 28 | <groupId>org.onap.policy.docker</groupId> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 29 | <artifactId>policy-jdk</artifactId> |
liamfallon | 5864b94 | 2022-09-22 19:28:26 +0100 | [diff] [blame] | 30 | <version>2.5.1-SNAPSHOT</version> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 31 | </parent> |
| 32 | |
| 33 | <packaging>pom</packaging> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 34 | <artifactId>policy-jdk-alpine</artifactId> |
| 35 | <name>Policy alpine jdk docker image</name> |
| 36 | <description>Policy alpine jdk docker image</description> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 37 | |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 38 | <properties> |
| 39 | <docker.jdk.imagename>onap/policy-jdk-alpine</docker.jdk.imagename> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 40 | <integration.python.name>onap/integration-python</integration.python.name> |
| 41 | <integration.python.version>10.1.0</integration.python.version> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 42 | </properties> |
| 43 | |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 44 | <profiles> |
| 45 | <profile> |
| 46 | <!-- This profile is activated on Apple M1 architecture to generate the ONAP base Java image locally --> |
| 47 | <id>baseImage</id> |
| 48 | <activation> |
| 49 | <os> |
| 50 | <arch>aarch64</arch> |
| 51 | </os> |
| 52 | </activation> |
| 53 | <build> |
| 54 | <plugins> |
| 55 | <plugin> |
| 56 | <groupId>org.apache.maven.plugins</groupId> |
| 57 | <artifactId>maven-scm-plugin</artifactId> |
| 58 | <version>1.13.0</version> |
| 59 | <dependencies> |
| 60 | <dependency> |
| 61 | <groupId>org.codehaus.plexus</groupId> |
| 62 | <artifactId>plexus-utils</artifactId> |
| 63 | <version>3.4.2</version> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.apache.maven.scm</groupId> |
| 67 | <artifactId>maven-scm-provider-gitexe</artifactId> |
| 68 | <version>1.13.0</version> |
| 69 | </dependency> |
| 70 | </dependencies> |
| 71 | <configuration> |
| 72 | <connectionType>connection</connectionType> |
| 73 | <checkoutDirectory>src/main/resources/meta</checkoutDirectory> |
| 74 | </configuration> |
| 75 | <executions> |
| 76 | <execution> |
| 77 | <id>checkout-onap-python</id> |
| 78 | <phase>validate</phase> |
| 79 | <configuration> |
| 80 | <connectionUrl>scm:git:https://gerrit.onap.org/r/integration/docker/onap-python</connectionUrl> |
| 81 | <checkoutDirectory>${project.build.directory}/onap-python</checkoutDirectory> |
| 82 | </configuration> |
| 83 | <goals> |
| 84 | <goal>checkout</goal> |
| 85 | </goals> |
| 86 | </execution> |
| 87 | </executions> |
| 88 | </plugin> |
| 89 | <plugin> |
| 90 | <groupId>io.fabric8</groupId> |
| 91 | <artifactId>docker-maven-plugin</artifactId> |
| 92 | |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>generate-python-image</id> |
| 96 | <phase>initialize</phase> |
| 97 | <configuration> |
| 98 | <verbose>true</verbose> |
| 99 | <apiVersion>1.23</apiVersion> |
| 100 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 101 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 102 | <images> |
| 103 | <image> |
| 104 | <name>${integration.python.name}</name> |
| 105 | <build> |
| 106 | <cleanup>try</cleanup> |
| 107 | <contextDir>${project.build.directory}/onap-python</contextDir> |
| 108 | <dockerFile>Dockerfile</dockerFile> |
| 109 | <tags> |
| 110 | <tag>${integration.python.version}</tag> |
| 111 | <tag>${integration.python.version}-${maven.build.timestamp}</tag> |
| 112 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 113 | </tags> |
| 114 | </build> |
| 115 | </image> |
| 116 | </images> |
| 117 | </configuration> |
| 118 | <goals> |
| 119 | <goal>build</goal> |
| 120 | </goals> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | </plugin> |
| 124 | </plugins> |
| 125 | </build> |
| 126 | </profile> |
| 127 | </profiles> |
| 128 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 129 | <build> |
| 130 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 131 | <plugins> |
| 132 | <plugin> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 133 | <groupId>org.codehaus.gmaven</groupId> |
| 134 | <artifactId>groovy-maven-plugin</artifactId> |
| 135 | <version>2.1.1</version> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 136 | <executions> |
| 137 | <execution> |
RossC | 3d168b0 | 2020-06-16 11:41:49 +0100 | [diff] [blame] | 138 | <phase>validate</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 139 | <goals> |
| 140 | <goal>execute</goal> |
| 141 | </goals> |
| 142 | <configuration> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 143 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 144 | </configuration> |
| 145 | </execution> |
| 146 | </executions> |
| 147 | </plugin> |
| 148 | <plugin> |
danielhanrahan | cf99a6b | 2022-06-28 17:39:32 +0100 | [diff] [blame] | 149 | <groupId>io.github.git-commit-id</groupId> |
| 150 | <artifactId>git-commit-id-maven-plugin</artifactId> |
| 151 | </plugin> |
| 152 | <plugin> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 153 | <groupId>io.fabric8</groupId> |
| 154 | <artifactId>docker-maven-plugin</artifactId> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 155 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 156 | <configuration> |
| 157 | <verbose>true</verbose> |
| 158 | <apiVersion>1.23</apiVersion> |
| 159 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 160 | <pushRegistry>${docker.push.registry}</pushRegistry> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 161 | <images> |
| 162 | <image> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 163 | <name>${docker.jdk.imagename}</name> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 164 | <build> |
| 165 | <cleanup>try</cleanup> |
| 166 | <dockerFile>Dockerfile</dockerFile> |
| 167 | <tags> |
RossC | 3d168b0 | 2020-06-16 11:41:49 +0100 | [diff] [blame] | 168 | <tag>${project.version}</tag> |
| 169 | <tag>${project.version}-${maven.build.timestamp}</tag> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 170 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 171 | </tags> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 172 | <args> |
| 173 | <INTEGRATION_PYTHON_NAME>${integration.python.name}</INTEGRATION_PYTHON_NAME> |
| 174 | <INTEGRATION_PYTHON_VERSION>${integration.python.version}</INTEGRATION_PYTHON_VERSION> |
| 175 | </args> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 176 | </build> |
| 177 | </image> |
| 178 | </images> |
| 179 | </configuration> |
| 180 | |
| 181 | <executions> |
| 182 | <execution> |
liamfallon | 0f7eef6 | 2022-09-09 00:18:33 +0100 | [diff] [blame] | 183 | <id>clean-jdk-image</id> |
| 184 | <phase>prepare-package</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 185 | <goals> |
| 186 | <goal>remove</goal> |
| 187 | </goals> |
| 188 | <configuration> |
| 189 | <removeAll>true</removeAll> |
| 190 | </configuration> |
| 191 | </execution> |
| 192 | |
| 193 | <execution> |
liamfallon | 0f7eef6 | 2022-09-09 00:18:33 +0100 | [diff] [blame] | 194 | <id>generate-jdk-image</id> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 195 | <phase>package</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 196 | <goals> |
| 197 | <goal>build</goal> |
| 198 | </goals> |
| 199 | </execution> |
| 200 | |
| 201 | <execution> |
liamfallon | 0f7eef6 | 2022-09-09 00:18:33 +0100 | [diff] [blame] | 202 | <id>push-jdk-image</id> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 203 | <phase>deploy</phase> |
| 204 | <goals> |
| 205 | <goal>build</goal> |
| 206 | <goal>push</goal> |
| 207 | </goals> |
| 208 | <configuration> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 209 | <image>${docker.jdk.imagename}</image> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 210 | </configuration> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | </plugin> |
| 214 | <plugin> |
| 215 | <groupId>org.apache.maven.plugins</groupId> |
| 216 | <artifactId>maven-deploy-plugin</artifactId> |
| 217 | <configuration> |
| 218 | <skip>true</skip> |
| 219 | </configuration> |
| 220 | </plugin> |
| 221 | <plugin> |
| 222 | <groupId>org.apache.maven.plugins</groupId> |
| 223 | <artifactId>maven-install-plugin</artifactId> |
| 224 | <configuration> |
| 225 | <skip>true</skip> |
| 226 | </configuration> |
| 227 | </plugin> |
| 228 | </plugins> |
| 229 | </build> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 230 | </project> |