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.1.0-SNAPSHOT</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.1.0-SNAPSHOT</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>openecomp/appc-image</image.name>
22 <appc.version>${project.version}</appc.version>
23 <!--This version will be over-ridden by jenkins
24 injecting the version.properties variable file during docker build-->
25 <appc.docker.staging.version>1.0.0</appc.docker.staging.version>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
33 <!-- This is to add any extra scripts, sql dump files, properties files APPC may need even after inheriting from the sdnc base image -->
35 <artifactId>maven-resources-plugin</artifactId>
36 <version>2.6</version>
39 <id>copy-dockerfile</id>
41 <goal>copy-resources</goal>
42 </goals><!-- here the phase you need -->
43 <phase>validate</phase>
45 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
48 <directory>src/main/docker</directory>
50 <include>Dockerfile</include>
52 <filtering>true</filtering>
61 <goal>copy-resources</goal>
62 </goals><!-- here the phase you need -->
63 <phase>validate</phase>
65 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/bin</outputDirectory>
68 <directory>src/main/scripts</directory>
70 <include>*.sh</include>
72 <filtering>false</filtering>
78 <!-- Two commented execution tags below in case / when appc needs to add .dump mysql files or keystore files -->
82 <goal>copy-resources</goal>
84 <phase>validate</phase>
86 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
89 <directory>src/main/resources</directory>
91 <include>*.dump</include>
93 <filtering>false</filtering>
99 <id>copy-keystores</id>
101 <goal>copy-resources</goal>
103 <phase>validate</phase>
105 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
108 <directory>../src/main/stores</directory>
110 <include>*.jks</include>
112 <filtering>false</filtering>
119 <id>copy-properties</id>
121 <goal>copy-resources</goal>
123 <phase>validate</phase>
125 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/data/properties</outputDirectory>
128 <directory>../src/main/appc-properties</directory>
130 <include>*.properties</include>
132 <filtering>false</filtering>
140 <artifactId>exec-maven-plugin</artifactId>
141 <groupId>org.codehaus.mojo</groupId>
142 <version>1.5.0</version>
145 <id>Get features</id>
146 <phase>generate-sources</phase>
151 <executable>/bin/bash</executable>
152 <environmentVariables>
153 <APPC_VERSION>${appc.version}</APPC_VERSION>
154 <APPC_OAM_VERSION>${project.version}</APPC_OAM_VERSION>
155 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
156 </environmentVariables>
158 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
159 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
165 <id>change shell permissions</id>
166 <phase>process-sources</phase>
171 <executable>/usr/bin/find</executable>
173 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
174 <argument>-name</argument>
175 <argument>*.sh</argument>
176 <argument>-exec</argument>
177 <argument>chmod</argument>
178 <argument>+x</argument>
179 <argument>{}</argument>
180 <argument>;</argument>
195 <groupId>io.fabric8</groupId>
196 <artifactId>docker-maven-plugin</artifactId>
197 <version>0.16.5</version>
198 <inherited>false</inherited>
202 <name>${image.name}</name>
204 <cleanup>try</cleanup>
205 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
206 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
208 <!-- <tag>${appc.docker.staging.version}-STAGING-${maven.build.timestamp}</tag> -->
209 <tag>${appc.docker.staging.version}-STAGING-latest</tag>
217 <id>generate-images</id>
218 <phase>package</phase>
226 <phase>deploy</phase>
235 <!-- This is to add any extra scripts, sql dump files, properties files
236 APPC may need even after inheriting from the sdnc base image -->
238 <artifactId>maven-resources-plugin</artifactId>
239 <version>2.6</version>
242 <id>copy-dockerfile</id>
244 <goal>copy-resources</goal>
245 </goals><!-- here the phase you need -->
246 <phase>validate</phase>
248 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
251 <directory>src/main/docker</directory>
253 <include>Dockerfile</include>
255 <filtering>true</filtering>
262 <id>copy-scripts</id>
264 <goal>copy-resources</goal>
265 </goals><!-- here the phase you need -->
266 <phase>validate</phase>
268 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/bin</outputDirectory>
271 <directory>src/main/scripts</directory>
273 <include>*.sh</include>
275 <filtering>false</filtering>
281 <!-- Two commented execution tags below in case / when appc needs
282 to add .dump mysql files or keystore files -->
283 <!--<execution> <id>copy-data</id> <goals> <goal>copy-resources</goal>
284 </goals> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
285 <resources> <resource> <directory>src/main/resources</directory> <includes>
286 <include>*.dump</include> </includes> <filtering>false</filtering> </resource>
287 </resources> </configuration> </execution> <execution> <id>copy-keystores</id>
288 <goals> <goal>copy-resources</goal> </goals> <phase>validate</phase> <configuration>
289 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
290 <resources> <resource> <directory>../src/main/stores</directory> <includes>
291 <include>*.jks</include> </includes> <filtering>false</filtering> </resource>
292 </resources> </configuration> </execution> -->
295 <id>copy-properties</id>
297 <goal>copy-resources</goal>
299 <phase>validate</phase>
301 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/appc/data/properties</outputDirectory>
304 <directory>../src/main/appc-properties</directory>
306 <include>*.properties</include>
308 <filtering>false</filtering>
316 <artifactId>exec-maven-plugin</artifactId>
317 <groupId>org.codehaus.mojo</groupId>
318 <version>1.5.0</version>
321 <id>Get features</id>
322 <phase>generate-sources</phase>
327 <executable>/bin/bash</executable>
328 <environmentVariables>
329 <APPC_VERSION>${appc.version}</APPC_VERSION>
330 <APPC_OAM_VERSION>${project.version}</APPC_OAM_VERSION>
331 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
332 </environmentVariables>
334 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
335 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
341 <id>change shell permissions</id>
342 <phase>process-sources</phase>
347 <executable>/usr/bin/find</executable>
349 <argument>${basedir}/target/docker-stage/opt/openecomp/appc</argument>
350 <argument>-name</argument>
351 <argument>*.sh</argument>
352 <argument>-exec</argument>
353 <argument>chmod</argument>
354 <argument>+x</argument>
355 <argument>{}</argument>
356 <argument>;</argument>
369 <name>openECOMP</name>