danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
liamfallon | aa30350 | 2023-02-17 19:16:12 +0000 | [diff] [blame^] | 3 | Copyright (C) 2021-2023 Nordix Foundation. |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +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.gui</groupId> |
| 28 | <artifactId>gui-packages</artifactId> |
liamfallon | 5aa5a74 | 2022-12-16 12:30:26 +0000 | [diff] [blame] | 29 | <version>2.4.1-SNAPSHOT</version> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 30 | </parent> |
| 31 | |
| 32 | <packaging>pom</packaging> |
| 33 | <artifactId>policy-gui-docker</artifactId> |
| 34 | <name>${project.artifactId}</name> |
| 35 | <description>Policy gui 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 | 94e79d2 | 2022-09-01 18:43:32 +0100 | [diff] [blame] | 46 | <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 47 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 48 | </properties> |
| 49 | |
| 50 | <build> |
| 51 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 52 | <plugins> |
| 53 | <plugin> |
| 54 | <groupId>org.codehaus.gmaven</groupId> |
| 55 | <artifactId>groovy-maven-plugin</artifactId> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 56 | <executions> |
| 57 | <execution> |
| 58 | <phase>validate</phase> |
| 59 | <goals> |
| 60 | <goal>execute</goal> |
| 61 | </goals> |
| 62 | <configuration> |
| 63 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
| 64 | </configuration> |
| 65 | </execution> |
| 66 | </executions> |
| 67 | </plugin> |
| 68 | |
| 69 | <plugin> |
danielhanrahan | 000b0c8 | 2022-06-28 14:37:30 +0100 | [diff] [blame] | 70 | <groupId>io.github.git-commit-id</groupId> |
| 71 | <artifactId>git-commit-id-maven-plugin</artifactId> |
danielhanrahan | 000b0c8 | 2022-06-28 14:37:30 +0100 | [diff] [blame] | 72 | </plugin> |
| 73 | |
| 74 | <plugin> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 75 | <groupId>io.fabric8</groupId> |
| 76 | <artifactId>docker-maven-plugin</artifactId> |
| 77 | |
| 78 | <configuration> |
| 79 | <verbose>true</verbose> |
| 80 | <apiVersion>1.23</apiVersion> |
| 81 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 82 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 83 | |
| 84 | <images> |
| 85 | <image> |
| 86 | <name>onap/policy-gui</name> |
| 87 | <build> |
| 88 | <cleanup>try</cleanup> |
danielhanrahan | 72772cd | 2022-05-26 20:41:24 +0100 | [diff] [blame] | 89 | <dockerFile>${dockerFile}</dockerFile> |
danielhanrahan | 94e79d2 | 2022-09-01 18:43:32 +0100 | [diff] [blame] | 90 | <contextDir>${docker.contextDir}</contextDir> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 91 | <tags> |
| 92 | <tag>${project.version}</tag> |
| 93 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 94 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 95 | </tags> |
| 96 | <assembly> |
| 97 | <inline> |
| 98 | <dependencySets> |
| 99 | <dependencySet> |
| 100 | <includes> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 101 | <include>org.onap.policy.gui:gui-server:jar:${project.version}</include> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 102 | </includes> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 103 | <outputFileNameMapping>app.jar</outputFileNameMapping> |
danielhanrahan | a8af962 | 2021-08-30 17:35:18 +0100 | [diff] [blame] | 104 | </dependencySet> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 105 | </dependencySets> |
| 106 | </inline> |
| 107 | </assembly> |
| 108 | </build> |
| 109 | </image> |
| 110 | </images> |
| 111 | </configuration> |
| 112 | |
| 113 | <executions> |
| 114 | <execution> |
| 115 | <id>clean-images</id> |
| 116 | <phase>pre-clean</phase> |
| 117 | <goals> |
| 118 | <goal>remove</goal> |
| 119 | </goals> |
| 120 | <configuration> |
| 121 | <removeAll>true</removeAll> |
| 122 | </configuration> |
| 123 | </execution> |
| 124 | |
| 125 | <execution> |
| 126 | <id>generate-images</id> |
| 127 | <phase>generate-sources</phase> |
| 128 | <goals> |
| 129 | <goal>build</goal> |
| 130 | </goals> |
| 131 | </execution> |
| 132 | |
| 133 | <execution> |
| 134 | <id>push-images</id> |
| 135 | <phase>deploy</phase> |
| 136 | <goals> |
| 137 | <goal>build</goal> |
| 138 | <goal>push</goal> |
| 139 | </goals> |
| 140 | <configuration> |
| 141 | <image>onap/policy-gui</image> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
| 146 | |
| 147 | <plugin> |
| 148 | <groupId>org.apache.maven.plugins</groupId> |
| 149 | <artifactId>maven-deploy-plugin</artifactId> |
| 150 | <configuration> |
| 151 | <skip>true</skip> |
| 152 | </configuration> |
| 153 | </plugin> |
| 154 | </plugins> |
| 155 | </build> |
| 156 | |
| 157 | <dependencies> |
| 158 | <dependency> |
| 159 | <groupId>org.onap.policy.gui</groupId> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 160 | <artifactId>gui-server</artifactId> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 161 | <version>${project.version}</version> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 162 | </dependency> |
danielhanrahan | 608e625 | 2021-08-20 16:55:19 +0100 | [diff] [blame] | 163 | </dependencies> |
| 164 | </project> |