diff options
-rwxr-xr-x | docker/build_image.sh | 6 |
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 } |