summaryrefslogtreecommitdiffstats
path: root/lcm/docker/build_image.sh
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-01 10:42:22 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-01 11:12:51 +0800
commitb3c72963f79580bddef8d5b51866134ef1a5ebe7 (patch)
tree32b0ef652c81b83b85faea5f462294cd9ac06379 /lcm/docker/build_image.sh
parent43bb3c0a6024280ca321a8d99802e700847f534e (diff)
Update image name for vfc-gvnfm-vnflcm
Change-Id: I328b9697c74746f40e3c3ef4427b73261b48bcf1 Issue-Id: VFC-212 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/docker/build_image.sh')
-rwxr-xr-xlcm/docker/build_image.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/lcm/docker/build_image.sh b/lcm/docker/build_image.sh
index eb7db9d0..b40f1cf7 100755
--- a/lcm/docker/build_image.sh
+++ b/lcm/docker/build_image.sh
@@ -4,7 +4,8 @@ MYSQL_ROOT_PASSWORD="root"
PROXY_ARGS=""
ORG="onap"
VERSION="1.0.0-SNAPSHOT"
-IMAGE="vfc-gvnfm-vnflcm"
+PROJECT="vfc"
+IMAGE="vnflcm"
DOCKER_REPOSITORY="nexus3.onap.org:10003"
if [ $HTTP_PROXY ]; then
@@ -15,12 +16,12 @@ if [ $HTTPS_PROXY ]; then
fi
function build_vnflcm {
- docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -t ${ORG}/${IMAGE}:${VERSION} -t ${ORG}/${IMAGE}:latest .
+ docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -t ${ORG}/${PROJECT}/${IMAGE}:${VERSION} -t ${ORG}/${PROJECT}/${IMAGE}:latest .
}
function push_vnflcm {
- docker push ${DOCKER_REPOSITORY}/${ORG}/${IMAGE}:${VERSION}
- docker push ${DOCKER_REPOSITORY}/${ORG}/${IMAGE}:latest
+ docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}:${VERSION}
+ docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}:latest
}
build_vnflcm