From: Pawel Date: Mon, 10 Feb 2020 12:03:38 +0000 (+0100) Subject: Add docker image building to maven configuration X-Git-Tag: 0.0.1~84 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8b1072c09e60828433903d2e0cd1eaffaf8c4aa0;p=oom%2Fplatform%2Fcert-service.git Add docker image building to maven configuration Issue-ID: AAF-995 Signed-off-by: Pawel Change-Id: I26862c9f2597ff058f869320ebd3948030b63051 --- diff --git a/certService/README.md b/certService/README.md index 431ff1df..908cfa29 100644 --- a/certService/README.md +++ b/certService/README.md @@ -19,11 +19,23 @@ ``` -### Building Docker image +### Building Docker image manually ``` docker build -t cert-service . ``` + +### Install the package into the local repository + ``` + mvn clean install + + ``` + +### Building Docker image and install the package into the local repository + ``` + mvn clean install -P docker + + ``` ### Running Docker container ``` diff --git a/certService/pom.xml b/certService/pom.xml index b3b83deb..8402d749 100644 --- a/certService/pom.xml +++ b/certService/pom.xml @@ -38,6 +38,7 @@ 2.2.4.RELEASE 2.1.5.RELEASE 1.2.21 + 0.33.0 @@ -144,6 +145,7 @@ true false false + ${java.home}/bin/javadoc @@ -164,4 +166,58 @@ + + + docker + + false + + + + + io.fabric8 + docker-maven-plugin + ${docker-maven-plugin.version} + + + start + pre-integration-test + + build + start + + + + stop + post-integration-test + + stop + + + + + + + cert-service + + ${project.basedir}/Dockerfile + + + + 8080:8080 + + + + http://localhost:8080/actuator/health + + + + + + + + + + +