aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorfkrzywka <filip.krzywka@nokia.com>2018-06-01 12:45:22 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-08-01 08:42:19 +0200
commit4b8cfb3e5bafc0cb078e37f64d0f21e8dfb0916a (patch)
tree8b7834278b3a6921014fcc2d457c66430a646768 /pom.xml
parentff1ce822e44ed6aa0712c2d04232ee2bdd427531 (diff)
Docker image creation
Maven integration with docker build Closes ONAP-226 Change-Id: I115ff9c13e1bf06a7594a174c7703bfea42f3641 Signed-off-by: fkrzywka <filip.krzywka@nokia.com> Issue-ID: DCAEGEN2-601
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 8ef993a0..e02b1b53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,6 +65,10 @@
<failIfMissingUnitTests>true</failIfMissingUnitTests>
<failIfMissingComponentTests>false</failIfMissingComponentTests>
<skipAnalysis>true</skipAnalysis>
+
+ <skipDocker>true</skipDocker>
+ <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
+ <docker-image.namespace>onap</docker-image.namespace>
</properties>
@@ -222,6 +226,42 @@
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.26.0</version>
+ <executions>
+ <execution>
+ <id>build-docker-image</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skip>${skipDocker}</skip>
+ <verbose>true</verbose>
+ <imagePullPolicy>IfNotPresent</imagePullPolicy>
+ <images>
+ <image>
+ <alias>${project.artifactId}</alias>
+ <name>${docker-image.namespace}/${docker-image.name}</name>
+ <build>
+ <dockerFileDir>${project.basedir}</dockerFileDir>
+ <tags>
+ <tag>${project.version}</tag>
+ </tags>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>