From ccce31f1c410462ce5fb297584049463c86c775d Mon Sep 17 00:00:00 2001 From: RehanRaza Date: Tue, 5 Mar 2019 09:05:32 +0000 Subject: Fix Docker image Change-Id: Icf8a37ea63e78d70256571d1bce424e629a04b55 Issue-ID: DCAEGEN2-1269 Signed-off-by: RehanRaza --- datafile-app-server/pom.xml | 20 +++++++++----------- datafile-app-server/src/main/resources/Dockerfile | 3 +-- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/datafile-app-server/pom.xml b/datafile-app-server/pom.xml index 3ceccdbe..d74889da 100644 --- a/datafile-app-server/pom.xml +++ b/datafile-app-server/pom.xml @@ -59,11 +59,10 @@ ${dockerfile.maven.version} ${onap.nexus.dockerregistry.daily}/${docker.image.name} - ${project.version} ${project.build.outputDirectory}/Dockerfile - - ${project.build.finalName}.jar - + + latest + @@ -78,11 +77,10 @@ deploy tag + push - ${docker.image.name}:latest - ${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest - true + ${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest @@ -90,11 +88,11 @@ deploy tag + push - ${docker.image.name}:latest + ${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version} - true @@ -102,11 +100,11 @@ deploy tag + push - ${docker.image.name}:latest + ${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z - true diff --git a/datafile-app-server/src/main/resources/Dockerfile b/datafile-app-server/src/main/resources/Dockerfile index 1869d364..6ab30cc2 100644 --- a/datafile-app-server/src/main/resources/Dockerfile +++ b/datafile-app-server/src/main/resources/Dockerfile @@ -22,8 +22,7 @@ FROM openjdk:8-jre-alpine WORKDIR /opt/app/datafile RUN mkdir -p /var/log/ONAP -ARG JAR_FILE -ADD /target/${JAR_FILE} /opt/app/datafile/datafile-app-server.jar +ADD /target/datafile-app-server.jar /opt/app/datafile/ ADD /config/application.yaml /opt/app/datafile/config/ ADD /config/cacerts /opt/app/datafile/config/ -- cgit 1.2.3-korg