From 5c428e9ee21dd953673d03ebfddb7bc174ffe3ba Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Fri, 6 Sep 2019 17:28:43 +0800 Subject: Use local zip to build docker image Use local zip to build docker image Change-Id: I8576744dca79f6e781d20539c2548df798a452d3 Issue-ID: MULTICLOUD-706 Signed-off-by: Ethan Lynn --- vio/docker/Dockerfile | 3 ++- vio/pom.xml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'vio') diff --git a/vio/docker/Dockerfile b/vio/docker/Dockerfile index 9af63cf..96457ec 100644 --- a/vio/docker/Dockerfile +++ b/vio/docker/Dockerfile @@ -14,10 +14,11 @@ EXPOSE 9004 RUN addgroup -S onap && adduser -S -G onap onap +COPY ./multicloud-openstack-vmware-*.zip /opt/multicloud-vio.zip RUN apk update && \ apk add uwsgi unzip wget curl gcc make libc-dev libffi-dev openssl-dev && \ cd /opt/ && \ - wget -q -O multicloud-vio.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=multicloud-openstack-vmware&v=1.4.1-SNAPSHOT&e=zip' && \ + # wget -q -O multicloud-vio.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=multicloud-openstack-vmware&v=1.4.1-SNAPSHOT&e=zip' && \ unzip multicloud-vio.zip && \ rm -rf multicloud-vio.zip && \ pip3 install -r /opt/vio/requirements.txt && \ diff --git a/vio/pom.xml b/vio/pom.xml index 1209357..a4698bd 100644 --- a/vio/pom.xml +++ b/vio/pom.xml @@ -127,17 +127,28 @@ copy-resources - validate + install copy-resources + true + + zip + ${project.basedir}/docker_target ${project.basedir}/docker true + + ${project.basedir}/target + true + + *.zip + + -- cgit 1.2.3-korg