summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-08-23 20:29:35 -0400
committerPrudence Au <prudence.au@amdocs.com>2018-08-24 07:21:19 -0400
commita2c10f7b5097b2dda32288706e1c41ebbdfd7ab1 (patch)
tree9710be92b223e3ce592b5bd2fd94daf66b91bc5a /pom.xml
parent3021aebce9906aefb311d3e33f76f58c824b74e8 (diff)
Add docker-maven-plugin for building docker image
Change-Id: I09c4db0b9fbc2a6976b7521b2e5d45ca28a03d11 Issue-ID: LOG-427 Signed-off-by: Prudence Au <prudence.au@amdocs.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml26
1 files changed, 25 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index c913167..8a5ed40 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,6 +71,12 @@ limitations under the License.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
+ <exclusions>
+ <exclusion>
+ <artifactId>logback-classic</artifactId>
+ <groupId>ch.qos.logback</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
@@ -360,6 +366,10 @@ limitations under the License.
</resource>
<resource>
<directory>${basedir}/src/main/bin/</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
</resource>
</resources>
</configuration>
@@ -387,7 +397,21 @@ limitations under the License.
</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}/onap/${project.artifactId}</imageName>
+ <dockerDirectory>${docker.location}</dockerDirectory>
+ <imageTags>
+ <imageTag>latest</imageTag>
+ </imageTags>
+ <forceTags>true</forceTags>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>