summaryrefslogtreecommitdiffstats
path: root/lcm/docker/build_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/docker/build_image.sh')
-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