From: vrvarma Date: Mon, 23 Mar 2020 16:42:03 +0000 (-0400) Subject: Fix has docker build to conform to self-release X-Git-Tag: 2.0.2~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=19515ef4efae6452cfe1474ce226928fbdb872ed;p=optf%2Fhas.git Fix has docker build to conform to self-release Change-Id: I27671db832cb85517bd7f7a0c587a9a02c2eec61 Signed-off-by: vrvarma Issue-ID: OPTFRA-722 --- diff --git a/conductor/docker/Dockerfile b/conductor/docker/Dockerfile index 9af6c23..c0c949b 100644 --- a/conductor/docker/Dockerfile +++ b/conductor/docker/Dockerfile @@ -47,9 +47,12 @@ RUN pip install --upgrade pip RUN apk add --virtual build-dependencies build-base linux-headers pcre-dev libffi-dev libxslt-dev libressl-dev RUN pip install uwsgi -RUN wget -O /opt/has.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.optf.has&a=optf-has-conductor&e=zip&v=${MVN_ARTIFACT_VERSION}" && \ - unzip -q -o -B /opt/has.zip -d /opt/has && \ - rm -f /opt/has.zip +#RUN wget -O /opt/has.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.optf.has&a=optf-has-conductor&e=zip&v=${MVN_ARTIFACT_VERSION}" && \ +# unzip -q -o -B /opt/has.zip -d /opt/has && \ +# rm -f /opt/has.zip + +COPY onap-has-tm/optf-has-conductor-${MVN_ARTIFACT_VERSION}.zip /tmp/optf-has.zip +RUN unzip -q -o -B /tmp/optf-has.zip -d /opt/has && rm -f /tmp/optf-has.zip #PKG-INFO file must also exists in the conductor folder (i.e. besides and inside the of_has.egg-info folder). The zip file for distro above is missing it RUN cp /opt/has/conductor/of_has.egg-info/PKG-INFO /opt/has/conductor diff --git a/conductor/docker/assembly/has-files.xml b/conductor/docker/assembly/has-files.xml new file mode 100644 index 0000000..9590740 --- /dev/null +++ b/conductor/docker/assembly/has-files.xml @@ -0,0 +1,56 @@ + + + + + + has-files + + + tar.gz + + false + + + + + + ${project.build.finalName}.zip + + ${project.build.directory} + / + + + + diff --git a/conductor/pom.xml b/conductor/pom.xml index 5851f63..ccfbc81 100644 --- a/conductor/pom.xml +++ b/conductor/pom.xml @@ -106,6 +106,10 @@ ${project.basedir}/docker/Dockerfile + + ${project.basedir}/docker/assembly/has-files.xml + onap-has-tm + ${project.version} ${project.repo}