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.2.0-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-admportal</artifactId>
13 <version>2.2.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates admportal Docker container</description>
19 <name>openECOMP</name>
23 <image.name>onap/admportal-sdnc-image</image.name>
24 <sdnc.project.version>${project.version}</sdnc.project.version>
25 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
26 <ccsdk.docker.version>${ccsdk.docker.ubuntu.version}</ccsdk.docker.version>
27 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
34 <groupId>org.codehaus.gmaven</groupId>
35 <artifactId>groovy-maven-plugin</artifactId>
36 <version>2.1.1</version>
39 <phase>validate</phase>
44 <source>${basedir}/../TagVersion.groovy</source>
50 <groupId>io.fabric8</groupId>
51 <artifactId>docker-maven-plugin</artifactId>
52 <version>0.28.0</version>
53 <inherited>false</inherited>
58 <name>${image.name}</name>
60 <cleanup>try</cleanup>
61 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
62 <dockerFile>Dockerfile</dockerFile>
64 <tag>${project.docker.latestminortag.version}</tag>
65 <tag>${project.docker.latestfulltag.version}</tag>
66 <tag>${project.docker.latesttagtimestamp.version}</tag>
74 <id>generate-images</id>
75 <phase>process-sources</phase>
93 <artifactId>maven-resources-plugin</artifactId>
94 <version>2.6</version>
97 <id>copy-dockerfile</id>
99 <goal>copy-resources</goal>
100 </goals><!-- here the phase you need -->
101 <phase>validate</phase>
103 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
106 <directory>src/main/docker</directory>
108 <include>Dockerfile</include>
110 <filtering>true</filtering>
116 <id>copy-properties</id>
118 <goal>copy-resources</goal>
119 </goals><!-- here the phase you need -->
120 <phase>validate</phase>
122 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
125 <directory>../src/main/properties</directory>
127 <include>*.properties</include>
128 <include>*.properties.sdnctldb01</include>
130 <filtering>false</filtering>
136 <id>copy-keystores</id>
138 <goal>copy-resources</goal>
139 </goals><!-- here the phase you need -->
140 <phase>validate</phase>
142 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
145 <directory>../src/main/stores</directory>
147 <include>*.p12</include>
149 <filtering>false</filtering>
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>exec-maven-plugin</artifactId>
159 <version>1.5.0</version>
162 <id>Unzip admportal</id>
163 <phase>generate-sources</phase>
168 <executable>/usr/bin/unzip</executable>
170 <argument>-d</argument>
171 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
172 <argument>../../admportal/target/*.zip</argument>
178 <id>Copy admportal config</id>
179 <phase>generate-sources</phase>
184 <executable>/bin/cp</executable>
186 <argument>../../admportal/config/admportal.json</argument>
187 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
193 <id>Copy admportal config1</id>
194 <phase>generate-sources</phase>
199 <executable>/bin/cp</executable>
201 <argument>../../admportal/config/admportal.log4js.json</argument>
202 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
209 <id>change shell permissions</id>
210 <phase>process-sources</phase>
215 <executable>/usr/bin/find</executable>
217 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
218 <argument>-name</argument>
219 <argument>*.sh</argument>
220 <argument>-exec</argument>
221 <argument>chmod</argument>
222 <argument>+x</argument>
223 <argument>{}</argument>
224 <argument>;</argument>