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.0.3-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc-web</artifactId>
13 <version>2.0.3-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 <ccsdk.features.version>1.0.1</ccsdk.features.version>
24 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
25 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27 <docker.push.phase>deploy</docker.push.phase>
28 <docker.verbose>true</docker.verbose>
33 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
34 <artifactId>sdnr-wt-odlux-installer</artifactId>
35 <version>${ccsdk.features.version}</version>
37 <classifier>repo</classifier>
44 <groupId>org.codehaus.groovy.maven</groupId>
45 <artifactId>gmaven-plugin</artifactId>
46 <version>1.0</version>
49 <phase>validate</phase>
54 <source>${basedir}/../TagVersion.groovy</source>
60 <artifactId>maven-resources-plugin</artifactId>
61 <version>2.6</version>
64 <id>copy-dockerfile</id>
66 <goal>copy-resources</goal>
67 </goals> <!-- here the phase you need -->
68 <phase>validate</phase>
70 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
73 <directory>src/main/docker</directory>
75 <include>Dockerfile</include>
77 <filtering>true</filtering>
83 <id>copy-siteconf</id>
85 <goal>copy-resources</goal>
86 </goals> <!-- here the phase you need -->
87 <phase>validate</phase>
89 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
92 <directory>src/main/resources</directory>
94 <include>*.conf</include>
96 <filtering>true</filtering>
103 <id>copy-scripts</id>
105 <goal>copy-resources</goal>
106 </goals> <!-- here the phase you need -->
107 <phase>validate</phase>
109 <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
112 <directory>src/main/scripts</directory>
114 <include>*.sh</include>
116 <filtering>true</filtering>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-dependency-plugin</artifactId>
128 <id>unpack features</id>
129 <phase>generate-sources</phase>
131 <goal>unpack-dependencies</goal>
134 <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
135 <excludeTransitive>true</excludeTransitive>
136 <overWriteReleases>false</overWriteReleases>
137 <overWriteSnapshots>true</overWriteSnapshots>
138 <overWriteIfNewer>true</overWriteIfNewer>
144 <groupId>io.fabric8</groupId>
145 <artifactId>docker-maven-plugin</artifactId>
146 <version>0.16.5</version>
147 <inherited>false</inherited>
151 <name>${image.name}</name>
153 <cleanup>try</cleanup>
154 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
155 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
157 <tag>${project.docker.latestminortag.version}</tag>
158 <tag>${project.docker.latestfulltag.version}</tag>
159 <tag>${project.docker.latesttagtimestamp.version}</tag>
167 <id>generate-images</id>
168 <phase>package</phase>
175 <phase>${docker.push.phase}</phase>