diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-05-10 17:24:19 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2019-05-10 09:32:23 +0000 |
commit | ce8e73903661e866ce86704819fb30b3827b937f (patch) | |
tree | 1190b412c7765df4ca0659b9778e73e38d9522f1 /gvnfmadapter/docker/build_image.sh | |
parent | 8e4cb67379bbbab35439354b8b5d7072ca76be16 (diff) |
Add ARG and PKG_VERSION to Dockerfile
Change-Id: Ia08a3d482f938a2bd9dec411abe1e707ef99c339
Issue-ID: VFC-1383
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'gvnfmadapter/docker/build_image.sh')
-rwxr-xr-x | gvnfmadapter/docker/build_image.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gvnfmadapter/docker/build_image.sh b/gvnfmadapter/docker/build_image.sh index 8968edf..920811c 100755 --- a/gvnfmadapter/docker/build_image.sh +++ b/gvnfmadapter/docker/build_image.sh @@ -13,6 +13,8 @@ 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}" + if [ $HTTP_PROXY ]; then BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}" fi |