summaryrefslogtreecommitdiffstats
path: root/res/docker/build_image.sh
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-09-06 10:57:52 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-09-06 11:02:17 +0800
commit3faa972ed076863ffd179895970f2b97ecde0fe1 (patch)
treec35c8561d9688854571d0f09c6a9d1eb1c878481 /res/docker/build_image.sh
parent09c0114f30a9e00679bf8745ab137b3265249697 (diff)
Update vnfres docker build function name
Change-Id: I7b1b4648257aa8d4501d840f55c5cc1d6b9f1e4a Issue-ID: VFC-289 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'res/docker/build_image.sh')
-rw-r--r--res/docker/build_image.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/res/docker/build_image.sh b/res/docker/build_image.sh
index 55eaeb9..246cef7 100644
--- a/res/docker/build_image.sh
+++ b/res/docker/build_image.sh
@@ -19,16 +19,16 @@ if [ $HTTPS_PROXY ]; then
BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
fi
-function build_vnfres {
+function build_image {
echo "Start build docker image: ${IMAGE_NAME}"
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
}
-function push_vnfres {
+function push_image {
echo "Start push docker image: ${IMAGE_NAME}"
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
}
-build_vnfres
-push_vnfres
+build_image
+push_image