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.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
38 <phase>validate</phase>
43 <source>${basedir}/../TagVersion.groovy</source>
49 <groupId>io.fabric8</groupId>
50 <artifactId>docker-maven-plugin</artifactId>
51 <version>0.28.0</version>
52 <inherited>false</inherited>
57 <name>${image.name}</name>
59 <cleanup>try</cleanup>
60 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
61 <dockerFile>Dockerfile</dockerFile>
63 <tag>${project.docker.latestminortag.version}</tag>
64 <tag>${project.docker.latestfulltag.version}</tag>
65 <tag>${project.docker.latesttagtimestamp.version}</tag>
73 <id>generate-images</id>
74 <phase>process-sources</phase>
92 <artifactId>maven-resources-plugin</artifactId>
93 <version>2.6</version>
96 <id>copy-dockerfile</id>
98 <goal>copy-resources</goal>
99 </goals><!-- here the phase you need -->
100 <phase>validate</phase>
102 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
105 <directory>src/main/docker</directory>
107 <include>Dockerfile</include>
109 <filtering>true</filtering>
115 <id>copy-properties</id>
117 <goal>copy-resources</goal>
118 </goals><!-- here the phase you need -->
119 <phase>validate</phase>
121 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
124 <directory>../src/main/properties</directory>
126 <include>*.properties</include>
127 <include>*.properties.sdnctldb01</include>
129 <filtering>false</filtering>
135 <id>copy-keystores</id>
137 <goal>copy-resources</goal>
138 </goals><!-- here the phase you need -->
139 <phase>validate</phase>
141 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
144 <directory>../src/main/stores</directory>
146 <include>*.p12</include>
148 <filtering>false</filtering>
156 <groupId>org.codehaus.mojo</groupId>
157 <artifactId>exec-maven-plugin</artifactId>
158 <version>1.5.0</version>
161 <id>Unzip admportal</id>
162 <phase>generate-sources</phase>
167 <executable>/usr/bin/unzip</executable>
169 <argument>-d</argument>
170 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
171 <argument>../../admportal/target/*.zip</argument>
177 <id>Copy admportal config</id>
178 <phase>generate-sources</phase>
183 <executable>/bin/cp</executable>
185 <argument>../../admportal/config/admportal.json</argument>
186 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
192 <id>Copy admportal config1</id>
193 <phase>generate-sources</phase>
198 <executable>/bin/cp</executable>
200 <argument>../../admportal/config/admportal.log4js.json</argument>
201 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
208 <id>change shell permissions</id>
209 <phase>process-sources</phase>
214 <executable>/usr/bin/find</executable>
216 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
217 <argument>-name</argument>
218 <argument>*.sh</argument>
219 <argument>-exec</argument>
220 <argument>chmod</argument>
221 <argument>+x</argument>
222 <argument>{}</argument>
223 <argument>;</argument>