summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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