blob: 3e6e9fdea71789b54e01fc5b5d3f76aa931301f5 [file] [log] [blame]
Michael Dürre7dc46a62020-02-03 13:47:39 +01001<?xml version="1.0" encoding="UTF-8"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4
5 <parent>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
Dan Timoney1012cdd2020-08-07 14:50:14 -04008 <version>2.0.0</version>
Michael Dürre7dc46a62020-02-03 13:47:39 +01009 </parent>
10
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc-web</artifactId>
Dan Timoney03c6d762020-03-18 09:30:59 -040013 <version>2.0.0-SNAPSHOT</version>
Michael Dürre7dc46a62020-02-03 13:47:39 +010014 <packaging>pom</packaging>
15
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
Michael Dürre8bbe7482020-02-07 07:23:27 +010017 <description>Creates SDN Controller WebUI Docker container</description>
Michael Dürre7dc46a62020-02-03 13:47:39 +010018
19 <properties>
20 <base.image.repo>docker.io/bitnami/nginx:1.16-debian-9</base.image.repo>
Michael Dürre8bbe7482020-02-07 07:23:27 +010021 <image.name>onap/sdnc-web-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
Michael Dürre7dc46a62020-02-03 13:47:39 +010024 <ccsdk.groupId>org.onap.ccsdk.features.sdnr.wt</ccsdk.groupId>
herbertb0b2b0a2020-04-21 21:19:55 +020025 <ccsdk.features.version>1.0.0-SNAPSHOT</ccsdk.features.version>
Michael Dürre7dc46a62020-02-03 13:47:39 +010026 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
27 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
28 <docker.push.phase>deploy</docker.push.phase>
29 <docker.verbose>true</docker.verbose>
Michael Dürre7dc46a62020-02-03 13:47:39 +010030 </properties>
31
32 <dependencies>
33 <dependency>
34 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
35 <artifactId>sdnr-wt-odlux-framework</artifactId>
36 <version>${ccsdk.features.version}</version>
37 </dependency>
38 <dependency>
39 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
40 <artifactId>sdnr-wt-odlux-apps-installer</artifactId>
41 <version>${ccsdk.features.version}</version>
Michael Dürre8bbe7482020-02-07 07:23:27 +010042 <type>zip</type>
43 <classifier>repo</classifier>
Michael Dürre7dc46a62020-02-03 13:47:39 +010044 </dependency>
Michael Dürre8bbe7482020-02-07 07:23:27 +010045 <dependency>
46 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
47 <artifactId>sdnr-wt-helpserver-installer</artifactId>
48 <version>${ccsdk.features.version}</version>
49 <type>zip</type>
50 <classifier>repo</classifier>
51 </dependency>
Michael Dürre7dc46a62020-02-03 13:47:39 +010052 </dependencies>
53
54 <build>
55 <plugins>
56 <plugin>
57 <groupId>org.codehaus.groovy.maven</groupId>
58 <artifactId>gmaven-plugin</artifactId>
59 <version>1.0</version>
60 <executions>
61 <execution>
62 <phase>validate</phase>
63 <goals>
64 <goal>execute</goal>
65 </goals>
66 <configuration>
Michael Dürre8bbe7482020-02-07 07:23:27 +010067 <source>${basedir}/../TagVersion.groovy</source>
Michael Dürre7dc46a62020-02-03 13:47:39 +010068 </configuration>
69 </execution>
70 </executions>
71 </plugin>
72 <plugin>
73 <artifactId>maven-resources-plugin</artifactId>
74 <version>2.6</version>
75 <executions>
76 <execution>
77 <id>copy-dockerfile</id>
78 <goals>
79 <goal>copy-resources</goal>
Michael Dürre8bbe7482020-02-07 07:23:27 +010080 </goals> <!-- here the phase you need -->
Michael Dürre7dc46a62020-02-03 13:47:39 +010081 <phase>validate</phase>
82 <configuration>
83 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
84 <resources>
85 <resource>
86 <directory>src/main/docker</directory>
87 <includes>
88 <include>Dockerfile</include>
89 </includes>
90 <filtering>true</filtering>
91 </resource>
92 </resources>
93 </configuration>
94 </execution>
95 <execution>
96 <id>copy-siteconf</id>
97 <goals>
98 <goal>copy-resources</goal>
Michael Dürre8bbe7482020-02-07 07:23:27 +010099 </goals> <!-- here the phase you need -->
Michael Dürre7dc46a62020-02-03 13:47:39 +0100100 <phase>validate</phase>
101 <configuration>
102 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
103 <resources>
104 <resource>
105 <directory>src/main/resources</directory>
106 <includes>
107 <include>*.conf</include>
108 </includes>
109 <filtering>true</filtering>
110 </resource>
111 </resources>
112 </configuration>
113 </execution>
114
115 <execution>
116 <id>copy-scripts</id>
117 <goals>
118 <goal>copy-resources</goal>
Michael Dürre8bbe7482020-02-07 07:23:27 +0100119 </goals> <!-- here the phase you need -->
Michael Dürre7dc46a62020-02-03 13:47:39 +0100120 <phase>validate</phase>
121 <configuration>
122 <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
123 <resources>
124 <resource>
125 <directory>src/main/scripts</directory>
126 <includes>
127 <include>*.sh</include>
128 </includes>
129 <filtering>true</filtering>
130 </resource>
131 </resources>
132 </configuration>
133 </execution>
134 </executions>
135 </plugin>
136 <plugin>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-dependency-plugin</artifactId>
139 <executions>
140 <execution>
141 <id>unpack features</id>
142 <phase>generate-sources</phase>
143 <goals>
144 <goal>unpack</goal>
145 </goals>
146
147 <configuration>
148 <artifactItems>
149 <artifactItem>
150 <groupId>${ccsdk.groupId}</groupId>
151 <artifactId>sdnr-wt-odlux-framework</artifactId>
152 <version>${ccsdk.features.version}</version>
153 <type>jar</type>
154 <overWrite>false</overWrite>
155 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100156 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100157 </artifactItem>
158 <!-- connectApp -->
159 <artifactItem>
160 <groupId>${ccsdk.groupId}</groupId>
161 <artifactId>sdnr-wt-odlux-app-connectApp</artifactId>
162 <version>${ccsdk.features.version}</version>
163 <type>jar</type>
164 <overWrite>false</overWrite>
165 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100166 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100167 </artifactItem>
168 <!-- eventLogApp -->
169 <artifactItem>
170 <groupId>${ccsdk.groupId}</groupId>
171 <artifactId>sdnr-wt-odlux-app-eventLogApp</artifactId>
172 <version>${ccsdk.features.version}</version>
173 <type>jar</type>
174 <overWrite>false</overWrite>
175 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100176 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100177 </artifactItem>
178 <!-- helpApp -->
179 <artifactItem>
180 <groupId>${ccsdk.groupId}</groupId>
181 <artifactId>sdnr-wt-odlux-app-helpApp</artifactId>
182 <version>${ccsdk.features.version}</version>
183 <type>jar</type>
184 <overWrite>false</overWrite>
185 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100186 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100187 </artifactItem>
188 <!-- maintenanceApp -->
189 <artifactItem>
190 <groupId>${ccsdk.groupId}</groupId>
191 <artifactId>sdnr-wt-odlux-app-maintenanceApp</artifactId>
192 <version>${ccsdk.features.version}</version>
193 <type>jar</type>
194 <overWrite>false</overWrite>
195 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100196 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100197 </artifactItem>
198 <!-- minimumApp -->
199 <artifactItem>
200 <groupId>${ccsdk.groupId}</groupId>
201 <artifactId>sdnr-wt-odlux-app-minimumApp</artifactId>
202 <version>${ccsdk.features.version}</version>
203 <type>jar</type>
204 <overWrite>false</overWrite>
205 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100206 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100207 </artifactItem>
208 <!-- configurationApp -->
209 <artifactItem>
210 <groupId>${ccsdk.groupId}</groupId>
211 <artifactId>sdnr-wt-odlux-app-configurationApp</artifactId>
212 <version>${ccsdk.features.version}</version>
213 <type>jar</type>
214 <overWrite>false</overWrite>
215 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100216 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100217 </artifactItem>
218 <!-- demoApp -->
219 <artifactItem>
220 <groupId>${ccsdk.groupId}</groupId>
221 <artifactId>sdnr-wt-odlux-app-demoApp</artifactId>
222 <version>${ccsdk.features.version}</version>
223 <type>jar</type>
224 <overWrite>false</overWrite>
225 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100226 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100227 </artifactItem>
228 <!-- faultApp -->
229 <artifactItem>
230 <groupId>${ccsdk.groupId}</groupId>
231 <artifactId>sdnr-wt-odlux-app-faultApp</artifactId>
232 <version>${ccsdk.features.version}</version>
233 <type>jar</type>
234 <overWrite>false</overWrite>
235 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
236 <includes>odlux/*</includes>
237 </artifactItem>
238 <!-- inventoryApp -->
239 <artifactItem>
240 <groupId>${ccsdk.groupId}</groupId>
241 <artifactId>sdnr-wt-odlux-app-inventoryApp</artifactId>
242 <version>${ccsdk.features.version}</version>
243 <type>jar</type>
244 <overWrite>false</overWrite>
245 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100246 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100247 </artifactItem>
248 <!-- mediatorApp -->
249 <artifactItem>
250 <groupId>${ccsdk.groupId}</groupId>
251 <artifactId>sdnr-wt-odlux-app-mediatorApp</artifactId>
252 <version>${ccsdk.features.version}</version>
253 <type>jar</type>
254 <overWrite>false</overWrite>
255 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100256 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100257 </artifactItem>
258 <!-- performanceHistoryApp -->
259 <artifactItem>
260 <groupId>${ccsdk.groupId}</groupId>
261 <artifactId>sdnr-wt-odlux-app-performanceHistoryApp</artifactId>
262 <version>${ccsdk.features.version}</version>
263 <type>jar</type>
264 <overWrite>false</overWrite>
265 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100266 <includes>odlux/**</includes>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100267 </artifactItem>
Michael Dürre8bbe7482020-02-07 07:23:27 +0100268 <!-- helpserver resources -->
269 <artifactItem>
270 <groupId>${ccsdk.groupId}</groupId>
271 <artifactId>sdnr-wt-helpserver-provider</artifactId>
272 <version>${ccsdk.features.version}</version>
273 <type>jar</type>
274 <overWrite>false</overWrite>
275 <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
Michael Dürrede4afb72020-03-02 14:55:57 +0100276 <includes>help/**</includes>
Michael Dürre8bbe7482020-02-07 07:23:27 +0100277 </artifactItem>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100278 </artifactItems>
279 </configuration>
280 </execution>
281 </executions>
282 </plugin>
283 <plugin>
284 <groupId>io.fabric8</groupId>
285 <artifactId>docker-maven-plugin</artifactId>
286 <version>0.16.5</version>
287 <inherited>false</inherited>
288 <configuration>
289 <images>
290 <image>
291 <name>${image.name}</name>
292 <build>
293 <cleanup>try</cleanup>
294 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
295 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
296 <tags>
297 <tag>${project.docker.latestminortag.version}</tag>
298 <tag>${project.docker.latestfulltag.version}</tag>
299 <tag>${project.docker.latesttagtimestamp.version}</tag>
300 </tags>
301 </build>
302 </image>
303 </images>
304 </configuration>
305 <executions>
306 <execution>
307 <id>generate-images</id>
308 <phase>package</phase>
309 <goals>
310 <goal>build</goal>
311 </goals>
312 </execution>
313 <execution>
314 <id>push-images</id>
315 <phase>${docker.push.phase}</phase>
316 <goals>
317 <goal>build</goal>
318 <goal>push</goal>
319 </goals>
320 </execution>
321 </executions>
322 </plugin>
323 </plugins>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100324 </build>
325</project>