From 7052cecddd5d9b140e470cc1775ef706621ece89 Mon Sep 17 00:00:00 2001 From: zhaohuabing Date: Wed, 1 Apr 2020 10:18:04 +0000 Subject: Using docker-maven-plugin to generate docker image Using docker-maven-plugin to generate docker image so we can follow self releasing process to create docker release image. Issue-ID: MSB-469 Signed-off-by: zhaohuabing Change-Id: I20762f8a2eb93a8f906e839d6e4e3eed9f39e970 --- pom.xml | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 113 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index ba6c4a5..2e3bdaa 100644 --- a/pom.xml +++ b/pom.xml @@ -21,11 +21,25 @@ org.onap.oom registrator 1.2.6-SNAPSHOT - mvn-golang oom-registrator Kube2msb registrator listens kubernetes events and register onap microservices to MSB. + + yyyyMMdd'T'HHmmss'Z' + build/docker + ${project.basedir}/target/version + onap/oom/kube2msb + ${project.version}-${maven.build.timestamp} + ${project.version}-latest + + + + + linux + + true + @@ -36,7 +50,7 @@ com.igormaznitsa mvn-golang-wrapper - 2.1.6 + 2.3.4 true true @@ -58,6 +72,7 @@ kube2msb + ${version.output} @@ -77,7 +92,102 @@ + + maven-resources-plugin + + + copy-resources-dockerfile + process-resources + + copy-resources + + + ${version.output} + true + + + ${dockerFileDir} + false + + Dockerfile + + + + true + + + + - + + + docker + + + + io.fabric8 + docker-maven-plugin + 0.19.1 + + + com.github.jnr + jnr-unixsocket + 0.13 + + + + true + 1.23 + nexus3.onap.org:10003 + + + ${docker.image.name} + docker_kube2msb + + true + + ${docker.tag} + ${docker.latest.tag} + + ${version.output} + + + + + + + clean-images + pre-clean + + remove + + + true + docker_kube2msb + + + + generate-images + package + + build + + + + push-images + deploy + + push + + + ${docker.image.name} + + + + + + + + -- cgit 1.2.3-korg