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.sdnc.oam</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.sdnc.oam</groupId>
14 <artifactId>installation-sdnc</artifactId>
15 <version>1.0.0</version>
17 <name>Installation - sdnc</name>
18 <description>Creates SDN Controller Docker container</description>
21 <image.name>ecomp/sdnc-image</image.name>
22 <sdnc.core.version>${project.version}</sdnc.core.version>
23 <sdnc.adaptors.version>${project.version}</sdnc.adaptors.version>
24 <sdnc.northbound.version>${project.version}</sdnc.northbound.version>
25 <sdnc.plugins.version>${project.version}</sdnc.plugins.version>
34 <groupId>io.fabric8</groupId>
35 <artifactId>docker-maven-plugin</artifactId>
36 <version>0.16.5</version>
37 <inherited>false</inherited>
42 <name>${image.name}</name>
44 <cleanup>try</cleanup>
45 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
46 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
48 <tag>${project.version}</tag>
57 <id>generate-images</id>
58 <phase>generate-sources</phase>
76 <artifactId>maven-resources-plugin</artifactId>
77 <version>2.6</version>
80 <id>copy-dockerfile</id>
82 <goal>copy-resources</goal>
83 </goals><!-- here the phase you need -->
84 <phase>validate</phase>
86 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
89 <directory>src/main/docker</directory>
91 <include>Dockerfile</include>
93 <filtering>true</filtering>
100 <id>copy-scripts</id>
102 <goal>copy-resources</goal>
103 </goals><!-- here the phase you need -->
104 <phase>validate</phase>
106 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/bin</outputDirectory>
109 <directory>src/main/scripts</directory>
111 <include>*.sh</include>
113 <filtering>false</filtering>
119 <id>copy-tarballs</id>
121 <goal>copy-resources</goal>
122 </goals><!-- here the phase you need -->
123 <phase>validate</phase>
125 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
128 <directory>src/main/resources</directory>
130 <include>*.tgz</include>
131 <include>*.tar.gz</include>
132 <include>idmlight.db.mv.db</include>
134 <filtering>false</filtering>
142 <goal>copy-resources</goal>
143 </goals><!-- here the phase you need -->
144 <phase>validate</phase>
146 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
149 <directory>src/main/resources</directory>
151 <include>*.dump</include>
153 <filtering>false</filtering>
159 <id>copy-properties</id>
161 <goal>copy-resources</goal>
162 </goals><!-- here the phase you need -->
163 <phase>validate</phase>
165 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</outputDirectory>
168 <directory>../src/main/properties</directory>
170 <include>*.properties</include>
172 <filtering>false</filtering>
178 <id>copy-keystores</id>
180 <goal>copy-resources</goal>
181 </goals><!-- here the phase you need -->
182 <phase>validate</phase>
184 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
187 <directory>../src/main/stores</directory>
189 <include>*.jks</include>
191 <filtering>false</filtering>
199 <artifactId>exec-maven-plugin</artifactId>
200 <groupId>org.codehaus.mojo</groupId>
204 <id>Get features</id>
205 <phase>generate-sources</phase>
210 <executable>/bin/bash</executable>
211 <environmentVariables>
212 <SDNC_CORE_VERSION>${sdnc.core.version}</SDNC_CORE_VERSION>
213 <SDNC_ADAPTORS_VERSION>${sdnc.adaptors.version}</SDNC_ADAPTORS_VERSION>
214 <SDNC_NORTHBOUND_VERSION>${sdnc.northbound.version}</SDNC_NORTHBOUND_VERSION>
215 <SDNC_PLUGINS_VERSION>${sdnc.plugins.version}</SDNC_PLUGINS_VERSION>
216 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
217 </environmentVariables>
219 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
220 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
226 <id>change shell permissions</id>
227 <phase>process-sources</phase>
232 <executable>/usr/bin/find</executable>
234 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
235 <argument>-name</argument>
236 <argument>*.sh</argument>
237 <argument>-exec</argument>
238 <argument>chmod</argument>
239 <argument>+x</argument>
240 <argument>{}</argument>
241 <argument>;</argument>
253 <name>openECOMP</name>