From 8b1072c09e60828433903d2e0cd1eaffaf8c4aa0 Mon Sep 17 00:00:00 2001 From: Pawel Date: Mon, 10 Feb 2020 13:03:38 +0100 Subject: [PATCH] Add docker image building to maven configuration Issue-ID: AAF-995 Signed-off-by: Pawel Change-Id: I26862c9f2597ff058f869320ebd3948030b63051 --- certService/README.md | 14 ++++++++++++- certService/pom.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) 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 + + + + + + + + + + + -- 2.16.6