blob: b8256a6e42f3c9fd5c0ef38ecba0f71e0a98d1da [file] [log] [blame]
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoneyf20174d2020-08-10 14:09:14 -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/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05004
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -05005 <parent>
Dan Timoneyf20174d2020-08-10 14:09:14 -04006 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
Singal, Kapil (ks220y)eef450e2020-08-28 10:18:17 -04008 <version>2.0.1-SNAPSHOT</version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -05009 </parent>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050010
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050011 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-admportal</artifactId>
Singal, Kapil (ks220y)eef450e2020-08-28 10:18:17 -040013 <version>2.0.1-SNAPSHOT</version>
Dan Timoneyf20174d2020-08-10 14:09:14 -040014 <packaging>pom</packaging>
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>
Dan Timoneyf20174d2020-08-10 14:09:14 -040018 <organization>
19 <name>openECOMP</name>
20 </organization>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050021
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050022 <properties>
23 <image.name>onap/admportal-sdnc-image</image.name>
24 <sdnc.project.version>${project.version}</sdnc.project.version>
25 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
Timoney, Dan (dt5972)3009eda2019-09-17 16:25:48 -040026 <ccsdk.docker.version>0.7-STAGING-latest</ccsdk.docker.version>
Timoney, Dan (dt5972)7b539402018-04-06 18:00:00 -040027 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050028 </properties>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -050029
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050030 <build>
31 <plugins>
Dan Timoney8f773512017-04-24 16:30:26 -040032
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050033 <plugin>
34 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
36 <executions>
37 <execution>
38 <phase>validate</phase>
39 <goals>
40 <goal>execute</goal>
41 </goals>
42 <configuration>
43 <source>${basedir}/../TagVersion.groovy</source>
44 </configuration>
45 </execution>
46 </executions>
47 </plugin>
48 <plugin>
49 <groupId>io.fabric8</groupId>
50 <artifactId>docker-maven-plugin</artifactId>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040051 <version>0.28.0</version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050052 <inherited>false</inherited>
53 <configuration>
Dan Timoney8f773512017-04-24 16:30:26 -040054
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050055 <images>
56 <image>
57 <name>${image.name}</name>
58 <build>
59 <cleanup>try</cleanup>
60 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040061 <dockerFile>Dockerfile</dockerFile>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050062 <tags>
63 <tag>${project.docker.latestminortag.version}</tag>
64 <tag>${project.docker.latestfulltag.version}</tag>
65 <tag>${project.docker.latesttagtimestamp.version}</tag>
66 </tags>
67 </build>
68 </image>
69 </images>
70 </configuration>
71 <executions>
72 <execution>
73 <id>generate-images</id>
Rotundo, Alfred (ar3165)67710452018-11-20 19:31:46 +000074 <phase>process-sources</phase>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050075 <goals>
76 <goal>build</goal>
77 </goals>
78 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -040079
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050080 <execution>
81 <id>push-images</id>
82 <phase>deploy</phase>
83 <goals>
84 <goal>build</goal>
85 <goal>push</goal>
86 </goals>
87 </execution>
88 </executions>
89 </plugin>
Dan Timoney8f773512017-04-24 16:30:26 -040090
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050091 <plugin>
92 <artifactId>maven-resources-plugin</artifactId>
93 <version>2.6</version>
94 <executions>
95 <execution>
96 <id>copy-dockerfile</id>
97 <goals>
98 <goal>copy-resources</goal>
99 </goals><!-- here the phase you need -->
100 <phase>validate</phase>
101 <configuration>
102 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
103 <resources>
104 <resource>
105 <directory>src/main/docker</directory>
106 <includes>
107 <include>Dockerfile</include>
108 </includes>
109 <filtering>true</filtering>
110 </resource>
111 </resources>
112 </configuration>
113 </execution>
114 <execution>
115 <id>copy-properties</id>
116 <goals>
117 <goal>copy-resources</goal>
118 </goals><!-- here the phase you need -->
119 <phase>validate</phase>
120 <configuration>
121 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
122 <resources>
123 <resource>
124 <directory>../src/main/properties</directory>
125 <includes>
126 <include>*.properties</include>
127 <include>*.properties.sdnctldb01</include>
128 </includes>
129 <filtering>false</filtering>
130 </resource>
131 </resources>
132 </configuration>
133 </execution>
Rotundo, Alfred (ar3165)67710452018-11-20 19:31:46 +0000134 <execution>
135 <id>copy-keystores</id>
136 <goals>
137 <goal>copy-resources</goal>
138 </goals><!-- here the phase you need -->
139 <phase>validate</phase>
140 <configuration>
141 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
142 <resources>
143 <resource>
144 <directory>../src/main/stores</directory>
145 <includes>
146 <include>*.p12</include>
147 </includes>
148 <filtering>false</filtering>
149 </resource>
150 </resources>
151 </configuration>
152 </execution>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500153 </executions>
154 </plugin>
155 <plugin>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500156 <groupId>org.codehaus.mojo</groupId>
Dan Timoneyf20174d2020-08-10 14:09:14 -0400157 <artifactId>exec-maven-plugin</artifactId>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500158 <version>1.5.0</version>
159 <executions>
160 <execution>
161 <id>Unzip admportal</id>
162 <phase>generate-sources</phase>
163 <goals>
164 <goal>exec</goal>
165 </goals>
166 <configuration>
167 <executable>/usr/bin/unzip</executable>
168 <arguments>
169 <argument>-d</argument>
170 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
171 <argument>../../admportal/target/*.zip</argument>
172 </arguments>
173 </configuration>
174 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -0400175
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500176 <execution>
177 <id>Copy admportal config</id>
178 <phase>generate-sources</phase>
179 <goals>
180 <goal>exec</goal>
181 </goals>
182 <configuration>
183 <executable>/bin/cp</executable>
184 <arguments>
185 <argument>../../admportal/config/admportal.json</argument>
186 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
187 </arguments>
188 </configuration>
189 </execution>
Dan Timoney8f773512017-04-24 16:30:26 -0400190
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500191 <execution>
192 <id>Copy admportal config1</id>
193 <phase>generate-sources</phase>
194 <goals>
195 <goal>exec</goal>
196 </goals>
197 <configuration>
198 <executable>/bin/cp</executable>
199 <arguments>
200 <argument>../../admportal/config/admportal.log4js.json</argument>
201 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
202 </arguments>
203 </configuration>
204 </execution>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500205
206
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500207 <execution>
208 <id>change shell permissions</id>
209 <phase>process-sources</phase>
210 <goals>
211 <goal>exec</goal>
212 </goals>
213 <configuration>
214 <executable>/usr/bin/find</executable>
215 <arguments>
216 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
217 <argument>-name</argument>
218 <argument>*.sh</argument>
219 <argument>-exec</argument>
220 <argument>chmod</argument>
221 <argument>+x</argument>
222 <argument>{}</argument>
223 <argument>;</argument>
224 </arguments>
225 </configuration>
226 </execution>
227 </executions>
228 </plugin>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500229
230
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500231 </plugins>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -0500232 </build>
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -0500233</project>