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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.1.0-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc</artifactId>
13 <version>2.1.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
23 <image.name>onap/sdnc-aaf-image</image.name>
24 <standalone.image.name>onap/sdnc-image</standalone.image.name>
25 <sdnc.project.version>${project.version}</sdnc.project.version>
26 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
27 <sdnc.northbound.version>2.1.0</sdnc.northbound.version>
28 <ccsdk.docker.version>1.1.0</ccsdk.docker.version>
29 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
30 <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
31 <sdnc.secureport>8443</sdnc.secureport>
32 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
33 <docker.push.phase>deploy</docker.push.phase>
34 <docker.verbose>true</docker.verbose>
35 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
36 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
41 <groupId>org.onap.sdnc.northbound</groupId>
42 <artifactId>generic-resource-api-installer</artifactId>
43 <version>${sdnc.northbound.version}</version>
45 <classifier>repo</classifier>
48 <groupId>org.onap.sdnc.northbound</groupId>
49 <artifactId>optical-service-installer</artifactId>
50 <version>${sdnc.northbound.version}</version>
52 <classifier>repo</classifier>
55 <groupId>org.onap.sdnc.northbound</groupId>
56 <artifactId>vnftools-installer</artifactId>
57 <version>${sdnc.northbound.version}</version>
59 <classifier>repo</classifier>
62 <groupId>org.onap.sdnc.northbound</groupId>
63 <artifactId>sdnc-northbound-features-installer</artifactId>
64 <version>${sdnc.northbound.version}</version>
66 <classifier>repo</classifier>
75 <groupId>org.codehaus.groovy.maven</groupId>
76 <artifactId>gmaven-plugin</artifactId>
79 <phase>validate</phase>
84 <source>${basedir}/../TagVersion.groovy</source>
91 <groupId>io.fabric8</groupId>
92 <artifactId>docker-maven-plugin</artifactId>
93 <version>0.28.0</version>
94 <inherited>false</inherited>
97 <id>generate-images</id>
98 <phase>package</phase>
105 <name>${image.name}</name>
107 <cleanup>try</cleanup>
108 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
109 <dockerFile>Dockerfile</dockerFile>
111 <tag>${project.docker.latestminortag.version}</tag>
112 <tag>${project.docker.latestfulltag.version}</tag>
113 <tag>${project.docker.latesttagtimestamp.version}</tag>
121 <id>start-it-instance</id>
122 <phase>pre-integration-test</phase>
129 <name>mariadb:10.5</name>
130 <alias>sdnc-db</alias>
133 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
134 <MYSQL_USER>sdnctl</MYSQL_USER>
135 <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD>
136 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
141 <alias>dbhost</alias>
142 <alias>sdnctldb01</alias>
143 <alias>sdnctldb02</alias>
146 <port>sdncdb.port:3306</port>
149 <enabled>true</enabled>
154 <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
155 <alias>sdnc-container</alias>
158 <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
159 <MYSQL_USER>sdnctl</MYSQL_USER>
160 <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD>
161 <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
162 <SDNC_CONFIG_DIR>/opt/onap/sdnc/data/properties</SDNC_CONFIG_DIR>
163 <KARAF_CONSOLE_LOG_LEVEL>INFO</KARAF_CONSOLE_LOG_LEVEL>
166 <container>sdnc-db</container>
174 <port>sdnc.port:8181</port>
177 <log>all warp coils are now operating at peak efficiency</log>
181 <enabled>true</enabled>
189 <id>stop-it-instance</id>
190 <phase>post-integration-test</phase>
197 <phase>${docker.push.phase}</phase>
205 <name>${image.name}</name>
207 <cleanup>try</cleanup>
208 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
209 <dockerFile>Dockerfile</dockerFile>
211 <tag>${project.docker.latestminortag.version}</tag>
212 <tag>${project.docker.latestfulltag.version}</tag>
213 <tag>${project.docker.latesttagtimestamp.version}</tag>
221 <id>generate-standalone-images</id>
222 <phase>package</phase>
229 <name>${standalone.image.name}</name>
231 <cleanup>try</cleanup>
232 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
233 <dockerFile>standalone.Dockerfile</dockerFile>
235 <tag>${project.docker.latestminortag.version}</tag>
236 <tag>${project.docker.latestfulltag.version}</tag>
237 <tag>${project.docker.latesttagtimestamp.version}</tag>
245 <id>push-standalone-images</id>
246 <phase>${docker.push.phase}</phase>
254 <name>${standalone.image.name}</name>
256 <cleanup>try</cleanup>
257 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
258 <dockerFile>standalone.Dockerfile</dockerFile>
260 <tag>${project.docker.latestminortag.version}</tag>
261 <tag>${project.docker.latestfulltag.version}</tag>
262 <tag>${project.docker.latesttagtimestamp.version}</tag>
272 <artifactId>maven-resources-plugin</artifactId>
273 <version>2.6</version>
276 <id>copy-dockerfile</id>
278 <goal>copy-resources</goal>
279 </goals><!-- here the phase you need -->
280 <phase>validate</phase>
282 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
285 <directory>src/main/docker</directory>
287 <include>Dockerfile</include>
288 <include>standalone.Dockerfile</include>
290 <filtering>true</filtering>
296 <id>copy-scripts</id>
298 <goal>copy-resources</goal>
299 </goals><!-- here the phase you need -->
300 <phase>validate</phase>
302 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
305 <directory>src/main/scripts</directory>
307 <include>*.py</include>
308 <include>*.sh</include>
310 <filtering>false</filtering>
316 <id>copy-tarballs</id>
318 <goal>copy-resources</goal>
319 </goals><!-- here the phase you need -->
320 <phase>validate</phase>
322 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
325 <directory>src/main/resources</directory>
327 <include>idmlight.db.mv.db</include>
328 <include>truststoreONAPall.jks</include>
329 <include>aaa-app-config.xml</include>
331 <filtering>false</filtering>
339 <goal>copy-resources</goal>
340 </goals><!-- here the phase you need -->
341 <phase>validate</phase>
343 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
346 <directory>src/main/resources</directory>
348 <include>*.dump</include>
350 <filtering>false</filtering>
356 <id>copy-properties</id>
358 <goal>copy-resources</goal>
359 </goals><!-- here the phase you need -->
360 <phase>validate</phase>
362 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
365 <directory>../src/main/properties</directory>
367 <include>*.properties</include>
368 <include>*.props</include>
369 <include>*.csv</include>
371 <filtering>false</filtering>
377 <id>copy-keystores</id>
379 <goal>copy-resources</goal>
380 </goals><!-- here the phase you need -->
381 <phase>validate</phase>
383 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
386 <directory>../src/main/stores</directory>
388 <include>*.jks</include>
389 <include>*.keyfile</include>
390 <include>*.p12</include>
392 <filtering>false</filtering>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-dependency-plugin</artifactId>
402 <version>3.0.2</version>
405 <id>unpack sdnc features</id>
406 <phase>generate-sources</phase>
408 <goal>unpack-dependencies</goal>
411 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
412 <excludeTransitive>true</excludeTransitive>
417 <phase>generate-sources</phase>
422 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
425 <groupId>${project.groupId}</groupId>
426 <artifactId>platform-logic-installer</artifactId>
427 <version>${project.version}</version>
434 <id>unpack migration utility</id>
435 <phase>generate-sources</phase>
440 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
443 <groupId>org.onap.sdnc.oam</groupId>
444 <artifactId>data-migrator</artifactId>
445 <version>${project.version}</version>
454 <groupId>org.codehaus.mojo</groupId>
455 <artifactId>exec-maven-plugin</artifactId>
456 <version>1.5.0</version>
459 <id>change shell permissions</id>
460 <phase>process-sources</phase>
465 <executable>/usr/bin/find</executable>
467 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
468 <argument>-name</argument>
469 <argument>*.sh</argument>
470 <argument>-exec</argument>
471 <argument>chmod</argument>
472 <argument>+x</argument>
473 <argument>{}</argument>
474 <argument>;</argument>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-failsafe-plugin</artifactId>
486 <goal>integration-test</goal>
492 <skipITs>false</skipITs>
493 <environmentVariables>
494 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
495 </environmentVariables>