summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/Dockerfile4
-rwxr-xr-xdocker/build_image.sh2
-rwxr-xr-xdocker/docker-env-conf.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 78fad8d4..f75f9091 100755
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -2,10 +2,10 @@ FROM python:2-alpine
ARG HTTP_PROXY=${HTTP_PROXY}
ARG HTTPS_PROXY=${HTTPS_PROXY}
-# ARG PKG_VERSION
+ARG PKG_VERSION
ENV http_proxy $HTTP_PROXY
ENV https_proxy $HTTPS_PROXY
-# ENV pkg_verison=${PKG_VERSION}
+ENV pkg_version=${PKG_VERSION}
ADD . /service
WORKDIR /service
diff --git a/docker/build_image.sh b/docker/build_image.sh
index a0769acb..1cb06833 100755
--- a/docker/build_image.sh
+++ b/docker/build_image.sh
@@ -13,7 +13,7 @@ DOCKER_REPOSITORY="nexus3.onap.org:10003"
IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
TIMESTAMP=$(date +"%Y%m%dT%H%M%S")
-# BUILD_ARGS+=" --build-arg PKG_VERSION=${VERSION}"
+BUILD_ARGS+=" --build-arg PKG_VERSION=${VERSION}"
if [ $HTTP_PROXY ]; then
BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}"
diff --git a/docker/docker-env-conf.sh b/docker/docker-env-conf.sh
index b523562c..a77ba520 100755
--- a/docker/docker-env-conf.sh
+++ b/docker/docker-env-conf.sh
@@ -8,7 +8,7 @@ install_sf(){
# get binary zip from nexus - vfc-nfvo-catalog
- wget -q -O vfc-nfvo-catalog.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.catalog&a=vfc-nfvo-catalog&v=LATEST&e=zip' && \
+ wget -q -O vfc-nfvo-catalog.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.catalog&a=vfc-nfvo-catalog&v=${pkg_version}-SNAPSHOT&e=zip" && \
unzip vfc-nfvo-catalog.zip && \
rm -rf vfc-nfvo-catalog.zip && \
pip install --upgrade setuptools pip && \