summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Arora <aroraarun@vmware.com>2017-10-23 14:33:51 +0530
committerArun Arora <aroraarun@vmware.com>2017-10-23 14:33:51 +0530
commit65f7f6367cbab0765b32e1a0cf6b78cadcef18b7 (patch)
treefdfffb4903a80b73c3057c837587d3071f0e53a7
parent2df4c40a5a8682f651c56873ab1340a5f2df4831 (diff)
VMWare vesagent docker build job fix
Fixes for docker daily build jenkins job failure Modified the code to download the vesagent JAR from nexus repo instead of building the code and copy from the target directory Change-Id: Ia6b303e7a39bc4bbef40d4caaca4dab401927d42 Issue-ID: MULTICLOUD-8 Signed-off-by: Arun Arora <aroraarun@vmware.com>
-rw-r--r--vesagent/docker/Dockerfile4
-rwxr-xr-xvesagent/docker/docker-build.sh17
2 files changed, 4 insertions, 17 deletions
diff --git a/vesagent/docker/Dockerfile b/vesagent/docker/Dockerfile
index 3b5b8e4..732a263 100644
--- a/vesagent/docker/Dockerfile
+++ b/vesagent/docker/Dockerfile
@@ -19,6 +19,10 @@ WORKDIR /opt
# Copy the local opt directory contents into the container at /opt
ADD opt /opt
+#Download vesagent jar from nexus repo and place in /opt
+RUN cd /opt/ && \
+ wget -O /opt/vesagent-1.0.0-SNAPSHOT.jar 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=vesagent&v=LATEST&e=jar'
+
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
diff --git a/vesagent/docker/docker-build.sh b/vesagent/docker/docker-build.sh
index 2b2f100..0260e9e 100755
--- a/vesagent/docker/docker-build.sh
+++ b/vesagent/docker/docker-build.sh
@@ -3,23 +3,6 @@ echo "WORKSPACE: ${WORKSPACE}"
VERSION="1.0.0-SNAPSHOT"
#
-# Copy vesagent Uber JAR to docker app directory
-#
-APP=${WORKSPACE}/vesagent/target/vesagent-${VERSION}.jar
-
-if [ ! -f "${APP}" ]
-then
- echo "FATAL error cannot locate ${APP}"
- exit 2
-fi
-
-APP_DIR=${WORKSPACE}/vesagent/docker/opt
-
-[ -d "${APP_DIR}/vesagent-${VERSION}.jar" ] && rm -rf "${APP_DIR}/vesagent-${VERSION}.jar"
-
-cp ${APP} ${APP_DIR}
-
-#
# Copy configurations directory
#
CONF_DIR=${WORKSPACE}/vesagent/etc