From 78920e6afaf4b888e4e38fdf78dd24602656ea19 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 5 Sep 2019 11:20:20 -0700 Subject: Fix copy-resource issue of artifactbroker - Change to install phase to make avail of artifacts - change binaryfilter for zip files - Build docker image with local artifact Change-Id: Icf975056e4afeb0708385828189e96f660f86e03 Issue-ID: MULTICLOUD-806 Signed-off-by: Liang Ding --- artifactbroker/docker/Dockerfile | 2 +- artifactbroker/pom.xml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'artifactbroker') diff --git a/artifactbroker/docker/Dockerfile b/artifactbroker/docker/Dockerfile index 8006e29..2e3f111 100644 --- a/artifactbroker/docker/Dockerfile +++ b/artifactbroker/docker/Dockerfile @@ -25,7 +25,7 @@ RUN mkdir -p ${ARTIFACT_DISTRIBUTION_HOME} ${ARTIFACT_LOGS} ${ARTIFACT_HOME}/etc chown -R onap:onap ${ARTIFACT_HOME} ${ARTIFACT_DISTRIBUTION_HOME} ${ARTIFACT_LOGS} WORKDIR ${ARTIFACT_DISTRIBUTION_HOME} -RUN wget -O multicloud-framework-artifactbroker-package-1.4.0-SNAPSHOT.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.framework&a=multicloud-framework-artifactbroker-package&e=zip&v=1.4.0-SNAPSHOT" && \ +COPY ./multicloud-framework-artifactbroker-*.zip /opt/multicloud-framework-artifactbroker.zip && \ unzip -q -o -B multicloud-framework-artifactbroker-package-1.4.0-SNAPSHOT.zip && \ rm -f multicloud-framework-artifactbroker-package-1.4.0-SNAPSHOT.zip COPY artifact-dist.sh bin/. diff --git a/artifactbroker/pom.xml b/artifactbroker/pom.xml index 7f2229d..f689997 100644 --- a/artifactbroker/pom.xml +++ b/artifactbroker/pom.xml @@ -238,17 +238,30 @@ copy-resources - validate + install copy-resources + true + + zip + jar + ${project.basedir}/docker_target ${project.basedir}/docker true + + ${project.basedir}/target + true + + *.zip + *.jar + + -- cgit 1.2.3-korg