Adding docker plugin to pom 35/17635/1
authorEdwin Lawrance <Edwin.Lawrance@amdocs.com>
Mon, 9 Oct 2017 10:56:05 +0000 (11:56 +0100)
committerEdwin Lawrance <Edwin.Lawrance@amdocs.com>
Mon, 9 Oct 2017 10:56:05 +0000 (11:56 +0100)
Change-Id: I928ce2cec1cc8f358e62717190431b4368b75de4
Issue-Id: AAI-46
Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 894f36e..60a479a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -57,6 +57,7 @@
                <snakeyamle.version>1.18</snakeyamle.version>
                <jacoco.version>0.7.9</jacoco.version>
                <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+               <docker.location>${basedir}/target</docker.location>
        </properties>
 
        <dependencies>
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <groupId>com.spotify</groupId>
+                               <artifactId>docker-maven-plugin</artifactId>
+                               <version>0.4.11</version>
+                               <configuration>
+                                       <verbose>true</verbose>
+                                       <serverId>docker-hub</serverId>
+                                       <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
+                                       <dockerDirectory>${docker.location}</dockerDirectory>
+                                       <imageTags>
+                               <imageTag>latest</imageTag>
+                                       </imageTags>
+                                       <forceTags>true</forceTags>
+                               </configuration>
+                       </plugin>
 
                        <!-- license plugin -->
                        <plugin>