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-sdnc-web</artifactId>
13 <version>2.2.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller WebUI Docker container</description>
20 <base.image.repo>docker.io/bitnami/nginx:1.16-debian-9</base.image.repo>
21 <image.name>onap/sdnc-web-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
25 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
26 <docker.push.phase>deploy</docker.push.phase>
27 <docker.verbose>true</docker.verbose>
32 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
33 <artifactId>sdnr-wt-odlux-installer</artifactId>
34 <version>${ccsdk.features.version}</version>
36 <classifier>repo</classifier>
43 <groupId>org.codehaus.groovy.maven</groupId>
44 <artifactId>gmaven-plugin</artifactId>
45 <version>1.0</version>
48 <phase>validate</phase>
53 <source>${basedir}/../TagVersion.groovy</source>
59 <artifactId>maven-resources-plugin</artifactId>
60 <version>2.6</version>
63 <id>copy-dockerfile</id>
65 <goal>copy-resources</goal>
66 </goals> <!-- here the phase you need -->
67 <phase>validate</phase>
69 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
72 <directory>src/main/docker</directory>
74 <include>Dockerfile</include>
76 <filtering>true</filtering>
82 <id>copy-siteconf</id>
84 <goal>copy-resources</goal>
85 </goals> <!-- here the phase you need -->
86 <phase>validate</phase>
88 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
91 <directory>src/main/resources</directory>
93 <include>*.conf</include>
95 <filtering>true</filtering>
102 <id>copy-scripts</id>
104 <goal>copy-resources</goal>
105 </goals> <!-- here the phase you need -->
106 <phase>validate</phase>
108 <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
111 <directory>src/main/scripts</directory>
113 <include>*.sh</include>
115 <filtering>true</filtering>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-dependency-plugin</artifactId>
127 <id>unpack features</id>
128 <phase>generate-sources</phase>
130 <goal>unpack-dependencies</goal>
133 <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
134 <excludeTransitive>true</excludeTransitive>
135 <overWriteReleases>false</overWriteReleases>
136 <overWriteSnapshots>true</overWriteSnapshots>
137 <overWriteIfNewer>true</overWriteIfNewer>
143 <groupId>io.fabric8</groupId>
144 <artifactId>docker-maven-plugin</artifactId>
145 <version>0.16.5</version>
146 <inherited>false</inherited>
150 <name>${image.name}</name>
152 <cleanup>try</cleanup>
153 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
156 <tag>${project.docker.latestminortag.version}</tag>
157 <tag>${project.docker.latestfulltag.version}</tag>
158 <tag>${project.docker.latesttagtimestamp.version}</tag>
166 <id>generate-images</id>
167 <phase>package</phase>
174 <phase>${docker.push.phase}</phase>