blob: 699097531884b3b51cbed36a76ded57dcd22484a [file] [log] [blame]
danielhanrahan608e6252021-08-20 16:55:19 +01001<!--
2 ============LICENSE_START=======================================================
danielhanrahane56f1272022-01-28 11:41:38 +00003 Copyright (C) 2021-2022 Nordix Foundation.
danielhanrahan608e6252021-08-20 16:55:19 +01004 ================================================================================
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>
liamfallon5aa5a742022-12-16 12:30:26 +000029 <version>2.4.1-SNAPSHOT</version>
danielhanrahan608e6252021-08-20 16:55:19 +010030 </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>
danielhanrahan94e79d22022-09-01 18:43:32 +010046 <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
danielhanrahan608e6252021-08-20 16:55:19 +010047 <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>
56 <version>2.1.1</version>
57 <executions>
58 <execution>
59 <phase>validate</phase>
60 <goals>
61 <goal>execute</goal>
62 </goals>
63 <configuration>
64 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
65 </configuration>
66 </execution>
67 </executions>
68 </plugin>
69
70 <plugin>
danielhanrahan000b0c82022-06-28 14:37:30 +010071 <groupId>io.github.git-commit-id</groupId>
72 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahan000b0c82022-06-28 14:37:30 +010073 </plugin>
74
75 <plugin>
danielhanrahan608e6252021-08-20 16:55:19 +010076 <groupId>io.fabric8</groupId>
77 <artifactId>docker-maven-plugin</artifactId>
78
79 <configuration>
80 <verbose>true</verbose>
81 <apiVersion>1.23</apiVersion>
82 <pullRegistry>${docker.pull.registry}</pullRegistry>
83 <pushRegistry>${docker.push.registry}</pushRegistry>
84
85 <images>
86 <image>
87 <name>onap/policy-gui</name>
88 <build>
89 <cleanup>try</cleanup>
danielhanrahan72772cd2022-05-26 20:41:24 +010090 <dockerFile>${dockerFile}</dockerFile>
danielhanrahan94e79d22022-09-01 18:43:32 +010091 <contextDir>${docker.contextDir}</contextDir>
danielhanrahan608e6252021-08-20 16:55:19 +010092 <tags>
93 <tag>${project.version}</tag>
94 <tag>${project.version}-${maven.build.timestamp}</tag>
95 <tag>${project.docker.latest.minmax.tag.version}</tag>
96 </tags>
97 <assembly>
98 <inline>
99 <dependencySets>
100 <dependencySet>
101 <includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000102 <include>org.onap.policy.gui:gui-server:jar:${project.version}</include>
danielhanrahan608e6252021-08-20 16:55:19 +0100103 </includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000104 <outputFileNameMapping>app.jar</outputFileNameMapping>
danielhanrahana8af9622021-08-30 17:35:18 +0100105 </dependencySet>
danielhanrahan608e6252021-08-20 16:55:19 +0100106 </dependencySets>
107 </inline>
108 </assembly>
109 </build>
110 </image>
111 </images>
112 </configuration>
113
114 <executions>
115 <execution>
116 <id>clean-images</id>
117 <phase>pre-clean</phase>
118 <goals>
119 <goal>remove</goal>
120 </goals>
121 <configuration>
122 <removeAll>true</removeAll>
123 </configuration>
124 </execution>
125
126 <execution>
127 <id>generate-images</id>
128 <phase>generate-sources</phase>
129 <goals>
130 <goal>build</goal>
131 </goals>
132 </execution>
133
134 <execution>
135 <id>push-images</id>
136 <phase>deploy</phase>
137 <goals>
138 <goal>build</goal>
139 <goal>push</goal>
140 </goals>
141 <configuration>
142 <image>onap/policy-gui</image>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147
148 <plugin>
149 <groupId>org.apache.maven.plugins</groupId>
150 <artifactId>maven-deploy-plugin</artifactId>
151 <configuration>
152 <skip>true</skip>
153 </configuration>
154 </plugin>
155 </plugins>
156 </build>
157
158 <dependencies>
159 <dependency>
160 <groupId>org.onap.policy.gui</groupId>
danielhanrahane56f1272022-01-28 11:41:38 +0000161 <artifactId>gui-server</artifactId>
danielhanrahan608e6252021-08-20 16:55:19 +0100162 <version>${project.version}</version>
danielhanrahan608e6252021-08-20 16:55:19 +0100163 </dependency>
danielhanrahan608e6252021-08-20 16:55:19 +0100164 </dependencies>
165</project>