From f51b3e1a957ede6c263d0c3634f36c7fcfbb95ff Mon Sep 17 00:00:00 2001 From: Dhrumin Desai Date: Mon, 28 Sep 2020 09:02:07 -0400 Subject: [PATCH] updating docker repository to onap nexus Change-Id: Id01bca24cad873742012f46fce8c02eba6e56d7d Issue-ID: DCAEGEN2-2317 Signed-off-by: Dhrumin Desai Signed-off-by: Mantena, Ravi (rx908f) Signed-off-by: Ravi Mantena --- mod2/auth-service/Dockerfile | 5 +++- mod2/auth-service/pom.xml | 65 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 62 insertions(+), 8 deletions(-) diff --git a/mod2/auth-service/Dockerfile b/mod2/auth-service/Dockerfile index c427bda..aa8707f 100644 --- a/mod2/auth-service/Dockerfile +++ b/mod2/auth-service/Dockerfile @@ -2,10 +2,13 @@ FROM onap/integration-java11:7.1.0 WORKDIR /usr/app VOLUME /tmp -ADD target/auth-service-1.0.0-SNAPSHOT.jar auth-service-1.0.0-SNAPSHOT.jar +ARG PROJECT_BUILD_DIR_NAME +ARG FINAL_JAR EXPOSE 8082 +COPY ${PROJECT_BUILD_DIR_NAME}/${FINAL_JAR} . + ENTRYPOINT ["java", \ "-Djava.security.egd=file:/dev/./urandom", \ "-jar", "auth-service-1.0.0-SNAPSHOT.jar"] \ No newline at end of file diff --git a/mod2/auth-service/pom.xml b/mod2/auth-service/pom.xml index 1fd4f02..75782f4 100644 --- a/mod2/auth-service/pom.xml +++ b/mod2/auth-service/pom.xml @@ -39,6 +39,8 @@ 11 ${java.version} ${java.version} + 1.4.10 + ${project.groupId}.${project.artifactId} @@ -125,13 +127,13 @@ jaxb-api 2.3.1 - - org.testng - testng - RELEASE - test - - + + org.testng + testng + RELEASE + test + + @@ -161,11 +163,60 @@ + + com.spotify + dockerfile-maven-plugin + ${dockerfile-maven-plugin.version} + + ${project.basedir} + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + + target + ${project.build.finalName}.jar + + + + + build-image + package + + build + + + + tag-and-push-image-latest + package + + tag + push + + + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + latest + true + + + + tag-and-push-image-with-version + package + + tag + push + + + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + ${project.version} + true + + + + org.apache.maven.plugins maven-surefire-plugin 2.22.2 + mod-auth-service -- 2.16.6