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. |
liamfallon | a939e67 | 2023-02-14 11:20:40 +0000 | [diff] [blame] | 5 | Modifications Copyright (C) 2022-2023 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-jre</artifactId> |
liamfallon | c2c575b | 2023-11-10 18:53:13 +0000 | [diff] [blame^] | 30 | <version>3.0.3-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-jre-alpine</artifactId> |
| 35 | <name>Policy alpine jre docker image</name> |
| 36 | <description>Policy alpine jre 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.jre.imagename>onap/policy-jre-alpine</docker.jre.imagename> |
| 40 | </properties> |
| 41 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 42 | <build> |
| 43 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 44 | <plugins> |
| 45 | <plugin> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 46 | <groupId>org.codehaus.gmaven</groupId> |
| 47 | <artifactId>groovy-maven-plugin</artifactId> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 48 | <executions> |
| 49 | <execution> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 50 | <phase>prepare-package</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 51 | <goals> |
| 52 | <goal>execute</goal> |
| 53 | </goals> |
| 54 | <configuration> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 55 | <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] | 56 | </configuration> |
| 57 | </execution> |
| 58 | </executions> |
| 59 | </plugin> |
| 60 | <plugin> |
danielhanrahan | cf99a6b | 2022-06-28 17:39:32 +0100 | [diff] [blame] | 61 | <groupId>io.github.git-commit-id</groupId> |
| 62 | <artifactId>git-commit-id-maven-plugin</artifactId> |
| 63 | </plugin> |
| 64 | <plugin> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 65 | <groupId>io.fabric8</groupId> |
| 66 | <artifactId>docker-maven-plugin</artifactId> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 67 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 68 | <configuration> |
| 69 | <verbose>true</verbose> |
| 70 | <apiVersion>1.23</apiVersion> |
| 71 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 72 | <pushRegistry>${docker.push.registry}</pushRegistry> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 73 | <images> |
| 74 | <image> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 75 | <name>${docker.jre.imagename}</name> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 76 | <build> |
| 77 | <cleanup>try</cleanup> |
| 78 | <dockerFile>Dockerfile</dockerFile> |
| 79 | <tags> |
RossC | 3d168b0 | 2020-06-16 11:41:49 +0100 | [diff] [blame] | 80 | <tag>${project.version}</tag> |
| 81 | <tag>${project.version}-${maven.build.timestamp}</tag> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame] | 82 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 83 | </tags> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 84 | </build> |
| 85 | </image> |
| 86 | </images> |
| 87 | </configuration> |
| 88 | |
| 89 | <executions> |
| 90 | <execution> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 91 | <id>clean-jre-image</id> |
| 92 | <phase>prepare-package</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 93 | <goals> |
| 94 | <goal>remove</goal> |
| 95 | </goals> |
| 96 | <configuration> |
| 97 | <removeAll>true</removeAll> |
| 98 | </configuration> |
| 99 | </execution> |
| 100 | |
| 101 | <execution> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 102 | <id>generate-jre-image</id> |
| 103 | <phase>package</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 104 | <goals> |
| 105 | <goal>build</goal> |
| 106 | </goals> |
| 107 | </execution> |
| 108 | |
| 109 | <execution> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 110 | <id>push-jre-image</id> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 111 | <phase>deploy</phase> |
| 112 | <goals> |
| 113 | <goal>build</goal> |
| 114 | <goal>push</goal> |
| 115 | </goals> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>org.apache.maven.plugins</groupId> |
| 121 | <artifactId>maven-deploy-plugin</artifactId> |
| 122 | <configuration> |
| 123 | <skip>true</skip> |
| 124 | </configuration> |
| 125 | </plugin> |
| 126 | <plugin> |
| 127 | <groupId>org.apache.maven.plugins</groupId> |
| 128 | <artifactId>maven-install-plugin</artifactId> |
| 129 | <configuration> |
| 130 | <skip>true</skip> |
| 131 | </configuration> |
| 132 | </plugin> |
| 133 | </plugins> |
| 134 | </build> |
liamfallon | 18c442a | 2022-07-31 19:12:28 +0100 | [diff] [blame] | 135 | </project> |