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 <groupId>io.fabric8</groupId>
30 <artifactId>docker-maven-plugin</artifactId>
31 <version>0.16.5</version>
32 <inherited>false</inherited>
36 <name>${image.name}</name>
38 <cleanup>try</cleanup>
39 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
40 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
42 <tag>${project.version}</tag>
43 <!-- <tag>release2</tag> -->
51 <id>generate-images</id>
52 <phase>generate-sources</phase>
69 <!-- This is to add any extra scripts, sql dump files, properties files APPC may need even after inheriting from the sdnc base image -->
71 <artifactId>maven-resources-plugin</artifactId>
72 <version>2.6</version>
75 <id>copy-dockerfile</id>
77 <goal>copy-resources</goal>
78 </goals><!-- here the phase you need -->
79 <phase>validate</phase>
81 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
84 <directory>src/main/docker</directory>
86 <include>Dockerfile</include>
88 <filtering>true</filtering>
97 <goal>copy-resources</goal>
98 </goals><!-- here the phase you need -->
99 <phase>validate</phase>
101 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/bin</outputDirectory>
104 <directory>src/main/scripts</directory>
106 <include>*.sh</include>
108 <filtering>false</filtering>
114 <!-- Two commented execution tags below in case / when appc needs to add .dump mysql files or keystore files -->
118 <goal>copy-resources</goal>
120 <phase>validate</phase>
122 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
125 <directory>src/main/resources</directory>
127 <include>*.dump</include>
129 <filtering>false</filtering>
135 <id>copy-keystores</id>
137 <goal>copy-resources</goal>
139 <phase>validate</phase>
141 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
144 <directory>../src/main/stores</directory>
146 <include>*.jks</include>
148 <filtering>false</filtering>
155 <id>copy-properties</id>
157 <goal>copy-resources</goal>
159 <phase>validate</phase>
161 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/data/properties</outputDirectory>
164 <directory>../src/main/appc-properties</directory>
166 <include>*.properties</include>
168 <filtering>false</filtering>
176 <artifactId>exec-maven-plugin</artifactId>
177 <groupId>org.codehaus.mojo</groupId>
180 <id>Get features</id>
181 <phase>generate-sources</phase>
186 <executable>/bin/bash</executable>
187 <environmentVariables>
188 <APPC_VERSION>${appc.version}</APPC_VERSION>
189 <APPC_OAM_VERSION>${project.version}</APPC_OAM_VERSION>
190 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
191 </environmentVariables>
193 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
194 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
200 <id>change shell permissions</id>
201 <phase>process-sources</phase>
206 <executable>/usr/bin/find</executable>
208 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
209 <argument>-name</argument>
210 <argument>*.sh</argument>
211 <argument>-exec</argument>
212 <argument>chmod</argument>
213 <argument>+x</argument>
214 <argument>{}</argument>
215 <argument>;</argument>
225 <name>openECOMP</name>