blob: 1d48c3b7165784c3411c77d29af8abf849e181d3 [file] [log] [blame]
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05001<?xml version="1.0" encoding="UTF-8"?>
Timoney, Dan (dt5972)84238e12019-03-18 17:23:08 -04002<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/maven-v4_0_0.xsd">
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05003
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -05004 <parent>
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
Timoney, Dan (dt5972)f16e0e12019-08-05 11:02:01 -04007 <version>1.3.2</version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -05008 </parent>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05009
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050010 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-admportal</artifactId>
Timoney, Dan (dt5972)9054cae2019-08-16 15:41:35 -040014 <version>1.6.2-SNAPSHOT</version>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050015
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050016 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates admportal Docker container</description>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050018
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050019 <properties>
20 <image.name>onap/admportal-sdnc-image</image.name>
21 <sdnc.project.version>${project.version}</sdnc.project.version>
22 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
23 <ccsdk.docker.version>0.4-STAGING-latest</ccsdk.docker.version>
Timoney, Dan (dt5972)7b539402018-04-06 18:00:00 -040024 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050025 </properties>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050026
27
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050028 <build>
29 <plugins>
Dan Timoney8f773512017-04-24 16:30:26 -040030
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050031 <plugin>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
34 <executions>
35 <execution>
36 <phase>validate</phase>
37 <goals>
38 <goal>execute</goal>
39 </goals>
40 <configuration>
41 <source>${basedir}/../TagVersion.groovy</source>
42 </configuration>
43 </execution>
44 </executions>
45 </plugin>
46 <plugin>
47 <groupId>io.fabric8</groupId>
48 <artifactId>docker-maven-plugin</artifactId>
49 <version>0.16.5</version>
50 <inherited>false</inherited>
51 <configuration>
Dan Timoney8f773512017-04-24 16:30:26 -040052
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050053 <images>
54 <image>
55 <name>${image.name}</name>
56 <build>
57 <cleanup>try</cleanup>
58 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
59 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
60 <tags>
61 <tag>${project.docker.latestminortag.version}</tag>
62 <tag>${project.docker.latestfulltag.version}</tag>
63 <tag>${project.docker.latesttagtimestamp.version}</tag>
64 </tags>
65 </build>
66 </image>
67 </images>
68 </configuration>
69 <executions>
70 <execution>
71 <id>generate-images</id>
Rotundo, Alfred (ar3165)67710452018-11-20 19:31:46 +000072 <phase>process-sources</phase>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050073 <goals>
74 <goal>build</goal>
75 </goals>
76 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -040077
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050078 <execution>
79 <id>push-images</id>
80 <phase>deploy</phase>
81 <goals>
82 <goal>build</goal>
83 <goal>push</goal>
84 </goals>
85 </execution>
86 </executions>
87 </plugin>
Dan Timoney8f773512017-04-24 16:30:26 -040088
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050089 <plugin>
90 <artifactId>maven-resources-plugin</artifactId>
91 <version>2.6</version>
92 <executions>
93 <execution>
94 <id>copy-dockerfile</id>
95 <goals>
96 <goal>copy-resources</goal>
97 </goals><!-- here the phase you need -->
98 <phase>validate</phase>
99 <configuration>
100 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
101 <resources>
102 <resource>
103 <directory>src/main/docker</directory>
104 <includes>
105 <include>Dockerfile</include>
106 </includes>
107 <filtering>true</filtering>
108 </resource>
109 </resources>
110 </configuration>
111 </execution>
112 <execution>
113 <id>copy-properties</id>
114 <goals>
115 <goal>copy-resources</goal>
116 </goals><!-- here the phase you need -->
117 <phase>validate</phase>
118 <configuration>
119 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
120 <resources>
121 <resource>
122 <directory>../src/main/properties</directory>
123 <includes>
124 <include>*.properties</include>
125 <include>*.properties.sdnctldb01</include>
126 </includes>
127 <filtering>false</filtering>
128 </resource>
129 </resources>
130 </configuration>
131 </execution>
Rotundo, Alfred (ar3165)67710452018-11-20 19:31:46 +0000132 <execution>
133 <id>copy-keystores</id>
134 <goals>
135 <goal>copy-resources</goal>
136 </goals><!-- here the phase you need -->
137 <phase>validate</phase>
138 <configuration>
139 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
140 <resources>
141 <resource>
142 <directory>../src/main/stores</directory>
143 <includes>
144 <include>*.p12</include>
145 </includes>
146 <filtering>false</filtering>
147 </resource>
148 </resources>
149 </configuration>
150 </execution>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500151 </executions>
152 </plugin>
153 <plugin>
154 <artifactId>exec-maven-plugin</artifactId>
155 <groupId>org.codehaus.mojo</groupId>
156 <version>1.5.0</version>
157 <executions>
158 <execution>
159 <id>Unzip admportal</id>
160 <phase>generate-sources</phase>
161 <goals>
162 <goal>exec</goal>
163 </goals>
164 <configuration>
165 <executable>/usr/bin/unzip</executable>
166 <arguments>
167 <argument>-d</argument>
168 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
169 <argument>../../admportal/target/*.zip</argument>
170 </arguments>
171 </configuration>
172 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -0400173
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500174 <execution>
175 <id>Copy admportal config</id>
176 <phase>generate-sources</phase>
177 <goals>
178 <goal>exec</goal>
179 </goals>
180 <configuration>
181 <executable>/bin/cp</executable>
182 <arguments>
183 <argument>../../admportal/config/admportal.json</argument>
184 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
185 </arguments>
186 </configuration>
187 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -0400188
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500189 <execution>
190 <id>Copy admportal config1</id>
191 <phase>generate-sources</phase>
192 <goals>
193 <goal>exec</goal>
194 </goals>
195 <configuration>
196 <executable>/bin/cp</executable>
197 <arguments>
198 <argument>../../admportal/config/admportal.log4js.json</argument>
199 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
200 </arguments>
201 </configuration>
202 </execution>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500203
204
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500205 <execution>
206 <id>change shell permissions</id>
207 <phase>process-sources</phase>
208 <goals>
209 <goal>exec</goal>
210 </goals>
211 <configuration>
212 <executable>/usr/bin/find</executable>
213 <arguments>
214 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
215 <argument>-name</argument>
216 <argument>*.sh</argument>
217 <argument>-exec</argument>
218 <argument>chmod</argument>
219 <argument>+x</argument>
220 <argument>{}</argument>
221 <argument>;</argument>
222 </arguments>
223 </configuration>
224 </execution>
225 </executions>
226 </plugin>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500227
228
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500229 </plugins>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500230
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500231 </build>
232 <organization>
233 <name>openECOMP</name>
234 </organization>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500235</project>