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.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.0.1-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.onap.sdnc.oam</groupId>
14 <artifactId>installation-sdnc</artifactId>
15 <version>1.3.1-SNAPSHOT</version>
17 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
18 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.northbound.version>1.3.1-SNAPSHOT</sdnc.northbound.version>
24 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
25 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
34 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
38 <phase>validate</phase>
44 println project.properties['sdnc.project.version'];
46 if ( project.properties['sdnc.project.version'] != null ) {
48 project.properties['sdnc.project.version'].split('\\.');
51 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) {
52 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
54 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
57 println 'New Tag for docker:' +
58 project.properties['project.docker.latesttag.version'];
66 <groupId>io.fabric8</groupId>
67 <artifactId>docker-maven-plugin</artifactId>
68 <version>0.16.5</version>
69 <inherited>false</inherited>
73 <name>${image.name}</name>
75 <cleanup>try</cleanup>
76 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
77 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
79 <tag>${project.version}</tag>
80 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
81 <tag>${project.docker.latesttag.version}</tag>
89 <id>generate-images</id>
90 <phase>package</phase>
110 <artifactId>maven-resources-plugin</artifactId>
111 <version>2.6</version>
114 <id>copy-dockerfile</id>
116 <goal>copy-resources</goal>
117 </goals><!-- here the phase you need -->
118 <phase>validate</phase>
120 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
123 <directory>src/main/docker</directory>
125 <include>Dockerfile</include>
127 <filtering>true</filtering>
134 <id>copy-scripts</id>
136 <goal>copy-resources</goal>
137 </goals><!-- here the phase you need -->
138 <phase>validate</phase>
140 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
143 <directory>src/main/scripts</directory>
145 <include>*.sh</include>
147 <filtering>false</filtering>
154 <id>copy-tarballs</id>
156 <goal>copy-resources</goal>
157 </goals><!-- here the phase you need -->
158 <phase>validate</phase>
160 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
163 <directory>src/main/resources</directory>
165 <include>idmlight.db.mv.db</include>
167 <filtering>false</filtering>
175 <goal>copy-resources</goal>
176 </goals><!-- here the phase you need -->
177 <phase>validate</phase>
179 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
182 <directory>src/main/resources</directory>
184 <include>*.dump</include>
186 <filtering>false</filtering>
192 <id>copy-properties</id>
194 <goal>copy-resources</goal>
195 </goals><!-- here the phase you need -->
196 <phase>validate</phase>
198 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
201 <directory>../src/main/properties</directory>
203 <include>*.properties</include>
205 <filtering>false</filtering>
211 <id>copy-keystores</id>
213 <goal>copy-resources</goal>
214 </goals><!-- here the phase you need -->
215 <phase>validate</phase>
217 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
220 <directory>../src/main/stores</directory>
222 <include>*.jks</include>
224 <filtering>false</filtering>
232 <artifactId>exec-maven-plugin</artifactId>
233 <groupId>org.codehaus.mojo</groupId>
234 <version>1.5.0</version>
238 <id>Get features</id>
239 <phase>generate-sources</phase>
244 <executable>/bin/bash</executable>
245 <environmentVariables>
246 <SDNC_NORTHBOUND_VERSION>${sdnc.northbound.version}</SDNC_NORTHBOUND_VERSION>
247 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
248 </environmentVariables>
250 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
251 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
257 <id>change shell permissions</id>
258 <phase>process-sources</phase>
263 <executable>/usr/bin/find</executable>
265 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
266 <argument>-name</argument>
267 <argument>*.sh</argument>
268 <argument>-exec</argument>
269 <argument>chmod</argument>
270 <argument>+x</argument>
271 <argument>{}</argument>
272 <argument>;</argument>
284 <name>openECOMP</name>