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 <artifactId>installation-sdnc-web</artifactId>
12 <packaging>pom</packaging>
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates SDN Controller WebUI Docker container</description>
18 <base.image.repo>docker.io/bitnami/nginx:1.16-debian-9</base.image.repo>
19 <image.name>onap/sdnc-web-image</image.name>
20 <sdnc.project.version>${project.version}</sdnc.project.version>
21 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
22 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
23 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
28 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29 <artifactId>sdnr-wt-odlux-installer</artifactId>
30 <version>${ccsdk.features.version}</version>
32 <classifier>repo</classifier>
39 <groupId>org.codehaus.groovy.maven</groupId>
40 <artifactId>gmaven-plugin</artifactId>
41 <version>1.0</version>
44 <phase>validate</phase>
49 <source>${basedir}/../TagVersion.groovy</source>
55 <artifactId>maven-resources-plugin</artifactId>
56 <version>2.6</version>
59 <id>copy-dockerfile</id>
61 <goal>copy-resources</goal>
62 </goals> <!-- here the phase you need -->
63 <phase>validate</phase>
65 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 <directory>src/main/docker</directory>
70 <include>Dockerfile</include>
72 <filtering>true</filtering>
78 <id>copy-siteconf</id>
80 <goal>copy-resources</goal>
81 </goals> <!-- here the phase you need -->
82 <phase>validate</phase>
84 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
87 <directory>src/main/resources</directory>
89 <include>*.conf</include>
91 <filtering>true</filtering>
100 <goal>copy-resources</goal>
101 </goals> <!-- here the phase you need -->
102 <phase>validate</phase>
104 <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
107 <directory>src/main/scripts</directory>
109 <include>*.sh</include>
111 <filtering>true</filtering>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-dependency-plugin</artifactId>
123 <id>unpack features</id>
124 <phase>generate-sources</phase>
126 <goal>unpack-dependencies</goal>
129 <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
130 <excludeTransitive>true</excludeTransitive>
131 <overWriteReleases>false</overWriteReleases>
132 <overWriteSnapshots>true</overWriteSnapshots>
133 <overWriteIfNewer>true</overWriteIfNewer>
139 <groupId>io.fabric8</groupId>
140 <artifactId>docker-maven-plugin</artifactId>
141 <version>0.34.0</version>
142 <inherited>false</inherited>
146 <name>${image.name}</name>
148 <cleanup>try</cleanup>
149 <noCache>true</noCache>
150 <contextDir>${basedir}/target/docker-stage</contextDir>
151 <dockerFile>Dockerfile</dockerFile>
153 <tag>${project.docker.latestminortag.version}</tag>
154 <tag>${project.docker.latestfulltag.version}</tag>
155 <tag>${project.docker.latesttagtimestamp.version}</tag>
160 <verbose>${docker.verbose}</verbose>
161 <skipPush>${docker.skip.push}</skipPush>
165 <id>build-push-images</id>