blob: 94453ceda5de05170ff25adac70613d2e43e9129 [file] [log] [blame]
danielhanrahan608e6252021-08-20 16:55:19 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2021 Nordix Foundation.
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>
29 <version>2.1.0-SNAPSHOT</version>
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>
46 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
47 </properties>
48
49 <build>
50 <finalName>${project.artifactId}-${project.version}</finalName>
51 <plugins>
52 <plugin>
53 <groupId>org.codehaus.gmaven</groupId>
54 <artifactId>groovy-maven-plugin</artifactId>
55 <version>2.1.1</version>
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>
70 <groupId>io.fabric8</groupId>
71 <artifactId>docker-maven-plugin</artifactId>
72
73 <configuration>
74 <verbose>true</verbose>
75 <apiVersion>1.23</apiVersion>
76 <pullRegistry>${docker.pull.registry}</pullRegistry>
77 <pushRegistry>${docker.push.registry}</pushRegistry>
78
79 <images>
80 <image>
81 <name>onap/policy-gui</name>
82 <build>
83 <cleanup>try</cleanup>
84 <dockerFile>Dockerfile</dockerFile>
85 <tags>
86 <tag>${project.version}</tag>
87 <tag>${project.version}-${maven.build.timestamp}</tag>
88 <tag>${project.docker.latest.minmax.tag.version}</tag>
89 </tags>
90 <assembly>
91 <inline>
92 <dependencySets>
93 <dependencySet>
94 <includes>
95 <include>org.onap.policy.gui:gui-clamp:tar.gz:clamp-build:${project.version}</include>
96 </includes>
97 <outputFileNameMapping>gui-clamp.tar.gz</outputFileNameMapping>
98 </dependencySet>
99 <dependencySet>
100 <includes>
101 <include>org.onap.policy.gui:gui-pdp-monitoring:uber.jar:${project.version}</include>
102 </includes>
103 <outputFileNameMapping>gui-pdp-monitoring-uber.jar</outputFileNameMapping>
104 </dependencySet>
105 <dependencySet>
106 <includes>
107 <include>org.onap.policy.gui.editors:gui-editor-apex:uber.jar:${project.version}</include>
108 </includes>
109 <outputFileNameMapping>gui-editor-apex-uber.jar</outputFileNameMapping>
110 </dependencySet>
111 </dependencySets>
112 </inline>
113 </assembly>
114 </build>
115 </image>
116 </images>
117 </configuration>
118
119 <executions>
120 <execution>
121 <id>clean-images</id>
122 <phase>pre-clean</phase>
123 <goals>
124 <goal>remove</goal>
125 </goals>
126 <configuration>
127 <removeAll>true</removeAll>
128 </configuration>
129 </execution>
130
131 <execution>
132 <id>generate-images</id>
133 <phase>generate-sources</phase>
134 <goals>
135 <goal>build</goal>
136 </goals>
137 </execution>
138
139 <execution>
140 <id>push-images</id>
141 <phase>deploy</phase>
142 <goals>
143 <goal>build</goal>
144 <goal>push</goal>
145 </goals>
146 <configuration>
147 <image>onap/policy-gui</image>
148 </configuration>
149 </execution>
150 </executions>
151 </plugin>
152
153 <plugin>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-deploy-plugin</artifactId>
156 <configuration>
157 <skip>true</skip>
158 </configuration>
159 </plugin>
160 </plugins>
161 </build>
162
163 <dependencies>
164 <dependency>
165 <groupId>org.onap.policy.gui</groupId>
166 <artifactId>gui-clamp</artifactId>
167 <version>${project.version}</version>
168 <classifier>clamp-build</classifier>
169 <type>tar.gz</type>
170 </dependency>
171 <dependency>
172 <groupId>org.onap.policy.gui</groupId>
173 <artifactId>gui-pdp-monitoring</artifactId>
174 <version>${project.version}</version>
175 <type>uber.jar</type>
176 </dependency>
177 <dependency>
178 <groupId>org.onap.policy.gui.editors</groupId>
179 <artifactId>gui-editor-apex</artifactId>
180 <version>${project.version}</version>
181 <type>uber.jar</type>
182 </dependency>
183 </dependencies>
184</project>