summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-31 17:11:38 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-31 17:11:38 +0800
commitf6cb853c7128df75168664821a2cbcf5cf2ac674 (patch)
treedaa4f7a3d1dc1906b5e2da8babbfd8a2580e5851
parented94dcc68e930044aba8b37bf7e7b22b048b51cc (diff)
Fix docker build script
Add ORG and VERSION parameter Change-Id: Idf52c41dedae299f308b269ccd78ad822ed54076 Issue-Id: VFC-198 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rwxr-xr-xlcm/docker/build_image.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/lcm/docker/build_image.sh b/lcm/docker/build_image.sh
index bbe2f84e..13bfd194 100755
--- a/lcm/docker/build_image.sh
+++ b/lcm/docker/build_image.sh
@@ -2,6 +2,9 @@
MYSQL_ROOT_PASSWORD="root"
PROXY_ARGS=""
+ORG="onap"
+VERSION="1.0.0-SNAPSHOT"
+IMAGE="vfc-gvnfm-vnflcm"
if [ $HTTP_PROXY ]; then
PROXY_ARGS+="--build-arg HTTP_PROXY=${HTTP_PROXY}"
@@ -11,8 +14,7 @@ if [ $HTTPS_PROXY ]; then
fi
function build_vnflcm {
- cd ../
- docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -f docker/Dockerfile -t vfc-gvnfm-vnflcm .
+ docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -t ${ORG}/${IMAGE}:${VERSION} -t ${ORG}/${IMAGE}:latest ${IMAGE}/target
}
build_vnflcm