aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-04 12:20:10 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-04 12:20:10 +0800
commitd72df7990368911a5a86a296aebad986db3e43b3 (patch)
tree25c01bb8ef4970b23d6057bb7971a3d4bae52508 /docker
parent5fbdfee507bbd4cfc231aca9ab71bc1f1d03338d (diff)
Add build dir to build_image.sh
Change-Id: Ic0dbaf7732547cd864aa5fbf2330ed439b608fe0 Issue-Id: VFC-251 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/build_image.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/build_image.sh b/docker/build_image.sh
index 9d2c97a8..465bc7a1 100755
--- a/docker/build_image.sh
+++ b/docker/build_image.sh
@@ -1,4 +1,8 @@
#!/bin/bash
+DIRNAME=`dirname $0`
+DOCKER_BUILD_DIR=`cd $DIRNAME/; pwd`
+echo "DOCKER_BUILD_DIR=${DOCKER_BUILD_DIR}"
+cd ${DOCKER_BUILD_DIR}
BUILD_ARGS="--no-cache"
ORG="onap"
@@ -16,10 +20,12 @@ if [ $HTTPS_PROXY ]; then
fi
function build_lcm {
+ echo "Start build docker image: ${IMAGE_NAME}"
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
}
function push_lcm {
+ echo "Start push docker image: ${IMAGE_NAME}"
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
}