1 <?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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <groupId>org.openecomp.appc.deployment</groupId>
7 <artifactId>installation</artifactId>
8 <version>1.0.0</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.openecomp.appc.deployment</groupId>
14 <artifactId>installation-appc</artifactId>
15 <version>1.0.0</version>
17 <name>Installation - APPC Docker</name>
18 <description>Creates APPC Docker container on top of the SDNC Base Docker Image</description>
21 <image.name>ecomp/appc-image</image.name>
22 <appc.version>${project.version}</appc.version>
29 <!-- This is to add any extra scripts, sql dump files, properties files APPC may need even after inheriting from the sdnc base image -->
31 <artifactId>maven-resources-plugin</artifactId>
32 <version>2.6</version>
35 <id>copy-dockerfile</id>
37 <goal>copy-resources</goal>
38 </goals><!-- here the phase you need -->
39 <phase>validate</phase>
41 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
44 <directory>src/main/docker</directory>
46 <include>Dockerfile</include>
48 <filtering>true</filtering>
57 <goal>copy-resources</goal>
58 </goals><!-- here the phase you need -->
59 <phase>validate</phase>
61 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/bin</outputDirectory>
64 <directory>src/main/scripts</directory>
66 <include>*.sh</include>
68 <filtering>false</filtering>
74 <!-- Two commented execution tags below in case / when appc needs to add .dump mysql files or keystore files -->
78 <goal>copy-resources</goal>
80 <phase>validate</phase>
82 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
85 <directory>src/main/resources</directory>
87 <include>*.dump</include>
89 <filtering>false</filtering>
95 <id>copy-keystores</id>
97 <goal>copy-resources</goal>
99 <phase>validate</phase>
101 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
104 <directory>../src/main/stores</directory>
106 <include>*.jks</include>
108 <filtering>false</filtering>
115 <id>copy-properties</id>
117 <goal>copy-resources</goal>
119 <phase>validate</phase>
121 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/data/properties</outputDirectory>
124 <directory>../src/main/appc-properties</directory>
126 <include>*.properties</include>
128 <filtering>false</filtering>
136 <artifactId>exec-maven-plugin</artifactId>
137 <groupId>org.codehaus.mojo</groupId>
140 <id>Get features</id>
141 <phase>generate-sources</phase>
146 <executable>/bin/bash</executable>
147 <environmentVariables>
148 <APPC_VERSION>${appc.version}</APPC_VERSION>
149 <APPC_OAM_VERSION>${project.version}</APPC_OAM_VERSION>
150 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
151 </environmentVariables>
153 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
154 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
160 <id>change shell permissions</id>
161 <phase>process-sources</phase>
166 <executable>/usr/bin/find</executable>
168 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
169 <argument>-name</argument>
170 <argument>*.sh</argument>
171 <argument>-exec</argument>
172 <argument>chmod</argument>
173 <argument>+x</argument>
174 <argument>{}</argument>
175 <argument>;</argument>
190 <groupId>io.fabric8</groupId>
191 <artifactId>docker-maven-plugin</artifactId>
192 <version>0.16.5</version>
193 <inherited>false</inherited>
197 <name>${image.name}</name>
199 <cleanup>try</cleanup>
200 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
201 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
203 <tag>${project.version}</tag>
204 <!-- <tag>release2</tag> -->
212 <id>generate-images</id>
213 <phase>generate-sources</phase>
221 <phase>deploy</phase>
230 <!-- This is to add any extra scripts, sql dump files, properties files
231 APPC may need even after inheriting from the sdnc base image -->
233 <artifactId>maven-resources-plugin</artifactId>
234 <version>2.6</version>
237 <id>copy-dockerfile</id>
239 <goal>copy-resources</goal>
240 </goals><!-- here the phase you need -->
241 <phase>validate</phase>
243 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
246 <directory>src/main/docker</directory>
248 <include>Dockerfile</include>
250 <filtering>true</filtering>
257 <id>copy-scripts</id>
259 <goal>copy-resources</goal>
260 </goals><!-- here the phase you need -->
261 <phase>validate</phase>
263 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/bin</outputDirectory>
266 <directory>src/main/scripts</directory>
268 <include>*.sh</include>
270 <filtering>false</filtering>
276 <!-- Two commented execution tags below in case / when appc needs
277 to add .dump mysql files or keystore files -->
278 <!--<execution> <id>copy-data</id> <goals> <goal>copy-resources</goal>
279 </goals> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
280 <resources> <resource> <directory>src/main/resources</directory> <includes>
281 <include>*.dump</include> </includes> <filtering>false</filtering> </resource>
282 </resources> </configuration> </execution> <execution> <id>copy-keystores</id>
283 <goals> <goal>copy-resources</goal> </goals> <phase>validate</phase> <configuration>
284 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
285 <resources> <resource> <directory>../src/main/stores</directory> <includes>
286 <include>*.jks</include> </includes> <filtering>false</filtering> </resource>
287 </resources> </configuration> </execution> -->
290 <id>copy-properties</id>
292 <goal>copy-resources</goal>
294 <phase>validate</phase>
296 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/data/properties</outputDirectory>
299 <directory>../src/main/appc-properties</directory>
301 <include>*.properties</include>
303 <filtering>false</filtering>
311 <artifactId>exec-maven-plugin</artifactId>
312 <groupId>org.codehaus.mojo</groupId>
315 <id>Get features</id>
316 <phase>generate-sources</phase>
321 <executable>/bin/bash</executable>
322 <environmentVariables>
323 <APPC_VERSION>${appc.version}</APPC_VERSION>
324 <APPC_OAM_VERSION>${project.version}</APPC_OAM_VERSION>
325 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
326 </environmentVariables>
328 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
329 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
335 <id>change shell permissions</id>
336 <phase>process-sources</phase>
341 <executable>/usr/bin/find</executable>
343 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
344 <argument>-name</argument>
345 <argument>*.sh</argument>
346 <argument>-exec</argument>
347 <argument>chmod</argument>
348 <argument>+x</argument>
349 <argument>{}</argument>
350 <argument>;</argument>
363 <name>openECOMP</name>