summaryrefslogtreecommitdiffstats
path: root/lcm/docker/build_image.sh
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-06 10:57:28 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-06 11:20:03 +0800
commit21bae2fb32a4c5a6c466b650e3610bd8237b9391 (patch)
treeb3e95287c2a792893fe4471c4c43ed6eff22bf3b /lcm/docker/build_image.sh
parent7d1221edf3d778ca3127b53c9fe5c765c8d45bf4 (diff)
Fix docker file of vfc-gvnfm-vnflcm
ci env problem, retry Change-Id: I85f17c7a64fd06ac5052d9a02ba9173a49778fd5 Issue-Id: VFC-288 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/docker/build_image.sh')
-rwxr-xr-xlcm/docker/build_image.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/lcm/docker/build_image.sh b/lcm/docker/build_image.sh
index 52ed777b..443142a5 100755
--- a/lcm/docker/build_image.sh
+++ b/lcm/docker/build_image.sh
@@ -19,15 +19,14 @@ if [ $HTTPS_PROXY ]; then
BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
fi
-function build_vnflcm {
+function build_image {
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
}
-function push_vnflcm {
+function push_image {
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
}
-build_vnflcm
-push_vnflcm
-
+build_image
+push_image