diff options
author | 2019-05-10 17:07:54 +0800 | |
---|---|---|
committer | 2019-05-10 09:18:53 +0000 | |
commit | 51a5b243a40535f2a8b7133deed8deae2a6f765f (patch) | |
tree | 56823fb158b5cac7fcecc2d3afc5b14692d68847 /docker/build_image.sh | |
parent | 8cb9e959229ce80ad9ec1ce127382570860c00d1 (diff) |
Add ARG and PKG_VERSION to Dockerfile
Change-Id: I260ab6b5a2c9d7cb464649eda0ff96d1412e57af
Issue-ID: VFC-1383
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker/build_image.sh')
-rwxr-xr-x | docker/build_image.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/build_image.sh b/docker/build_image.sh index 17ef9a7..e4538d0 100755 --- a/docker/build_image.sh +++ b/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 |