blob: 44b26cbea60caf028f0f6700ddd1a5d2fde1f570 [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">
Dan Timoneyf20174d2020-08-10 14:09:14 -04003 <modelVersion>4.0.0</modelVersion>
Michael Dürre7dc46a62020-02-03 13:47:39 +01004
Dan Timoneyf20174d2020-08-10 14:09:14 -04005 <parent>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
Dan Timoneybfcb0c02020-10-12 10:36:11 -04008 <version>2.0.3-SNAPSHOT</version>
Dan Timoneyf20174d2020-08-10 14:09:14 -04009 </parent>
Michael Dürre7dc46a62020-02-03 13:47:39 +010010
Dan Timoneyf20174d2020-08-10 14:09:14 -040011 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc-web</artifactId>
Dan Timoneybfcb0c02020-10-12 10:36:11 -040013 <version>2.0.3-SNAPSHOT</version>
Dan Timoneyf20174d2020-08-10 14:09:14 -040014 <packaging>pom</packaging>
Michael Dürre7dc46a62020-02-03 13:47:39 +010015
Dan Timoneyf20174d2020-08-10 14:09:14 -040016 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller WebUI Docker container</description>
Michael Dürre7dc46a62020-02-03 13:47:39 +010018
Dan Timoneyf20174d2020-08-10 14:09:14 -040019 <properties>
20 <base.image.repo>docker.io/bitnami/nginx:1.16-debian-9</base.image.repo>
21 <image.name>onap/sdnc-web-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
Dan Timoney97439c82020-09-11 13:31:12 -040023 <ccsdk.features.version>1.0.1</ccsdk.features.version>
Dan Timoneyf20174d2020-08-10 14:09:14 -040024 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
Dan Timoneyf20174d2020-08-10 14:09:14 -040025 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27 <docker.push.phase>deploy</docker.push.phase>
28 <docker.verbose>true</docker.verbose>
29 </properties>
Michael Dürre7dc46a62020-02-03 13:47:39 +010030
Dan Timoneyf20174d2020-08-10 14:09:14 -040031 <dependencies>
32 <dependency>
33 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
Michael Dürre4c984ce2020-08-31 06:36:53 +020034 <artifactId>sdnr-wt-odlux-installer</artifactId>
Dan Timoneyf20174d2020-08-10 14:09:14 -040035 <version>${ccsdk.features.version}</version>
36 <type>zip</type>
37 <classifier>repo</classifier>
38 </dependency>
39 </dependencies>
Michael Dürre7dc46a62020-02-03 13:47:39 +010040
Dan Timoneyf20174d2020-08-10 14:09:14 -040041 <build>
42 <plugins>
43 <plugin>
44 <groupId>org.codehaus.groovy.maven</groupId>
45 <artifactId>gmaven-plugin</artifactId>
46 <version>1.0</version>
47 <executions>
48 <execution>
49 <phase>validate</phase>
50 <goals>
51 <goal>execute</goal>
52 </goals>
53 <configuration>
54 <source>${basedir}/../TagVersion.groovy</source>
55 </configuration>
56 </execution>
57 </executions>
58 </plugin>
59 <plugin>
60 <artifactId>maven-resources-plugin</artifactId>
61 <version>2.6</version>
62 <executions>
63 <execution>
64 <id>copy-dockerfile</id>
65 <goals>
66 <goal>copy-resources</goal>
67 </goals> <!-- here the phase you need -->
68 <phase>validate</phase>
69 <configuration>
70 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
71 <resources>
72 <resource>
73 <directory>src/main/docker</directory>
74 <includes>
75 <include>Dockerfile</include>
76 </includes>
77 <filtering>true</filtering>
78 </resource>
79 </resources>
80 </configuration>
81 </execution>
82 <execution>
83 <id>copy-siteconf</id>
84 <goals>
85 <goal>copy-resources</goal>
86 </goals> <!-- here the phase you need -->
87 <phase>validate</phase>
88 <configuration>
89 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
90 <resources>
91 <resource>
92 <directory>src/main/resources</directory>
93 <includes>
94 <include>*.conf</include>
95 </includes>
96 <filtering>true</filtering>
97 </resource>
98 </resources>
99 </configuration>
100 </execution>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100101
Dan Timoneyf20174d2020-08-10 14:09:14 -0400102 <execution>
103 <id>copy-scripts</id>
104 <goals>
105 <goal>copy-resources</goal>
106 </goals> <!-- here the phase you need -->
107 <phase>validate</phase>
108 <configuration>
109 <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
110 <resources>
111 <resource>
112 <directory>src/main/scripts</directory>
113 <includes>
114 <include>*.sh</include>
115 </includes>
116 <filtering>true</filtering>
117 </resource>
118 </resources>
119 </configuration>
120 </execution>
121 </executions>
122 </plugin>
123 <plugin>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-dependency-plugin</artifactId>
126 <executions>
127 <execution>
128 <id>unpack features</id>
129 <phase>generate-sources</phase>
130 <goals>
Michael Dürre4c984ce2020-08-31 06:36:53 +0200131 <goal>unpack-dependencies</goal>
Dan Timoneyf20174d2020-08-10 14:09:14 -0400132 </goals>
Dan Timoneyf20174d2020-08-10 14:09:14 -0400133 <configuration>
Michael Dürre4c984ce2020-08-31 06:36:53 +0200134 <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
135 <excludeTransitive>true</excludeTransitive>
136 <overWriteReleases>false</overWriteReleases>
137 <overWriteSnapshots>true</overWriteSnapshots>
138 <overWriteIfNewer>true</overWriteIfNewer>
Dan Timoneyf20174d2020-08-10 14:09:14 -0400139 </configuration>
140 </execution>
141 </executions>
142 </plugin>
143 <plugin>
144 <groupId>io.fabric8</groupId>
145 <artifactId>docker-maven-plugin</artifactId>
146 <version>0.16.5</version>
147 <inherited>false</inherited>
148 <configuration>
149 <images>
150 <image>
151 <name>${image.name}</name>
152 <build>
153 <cleanup>try</cleanup>
154 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
155 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
156 <tags>
157 <tag>${project.docker.latestminortag.version}</tag>
158 <tag>${project.docker.latestfulltag.version}</tag>
159 <tag>${project.docker.latesttagtimestamp.version}</tag>
160 </tags>
161 </build>
162 </image>
163 </images>
164 </configuration>
165 <executions>
166 <execution>
167 <id>generate-images</id>
168 <phase>package</phase>
169 <goals>
170 <goal>build</goal>
171 </goals>
172 </execution>
173 <execution>
174 <id>push-images</id>
175 <phase>${docker.push.phase}</phase>
176 <goals>
177 <goal>build</goal>
178 <goal>push</goal>
179 </goals>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
Michael Dürre7dc46a62020-02-03 13:47:39 +0100185</project>