summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
Diffstat (limited to 'lcm')
-rwxr-xr-xlcm/docker/build_image.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/lcm/docker/build_image.sh b/lcm/docker/build_image.sh
index 13bfd194..eb7db9d0 100755
--- a/lcm/docker/build_image.sh
+++ b/lcm/docker/build_image.sh
@@ -5,6 +5,7 @@ PROXY_ARGS=""
ORG="onap"
VERSION="1.0.0-SNAPSHOT"
IMAGE="vfc-gvnfm-vnflcm"
+DOCKER_REPOSITORY="nexus3.onap.org:10003"
if [ $HTTP_PROXY ]; then
PROXY_ARGS+="--build-arg HTTP_PROXY=${HTTP_PROXY}"
@@ -14,8 +15,14 @@ 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 ${IMAGE}/target
+ docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -t ${ORG}/${IMAGE}:${VERSION} -t ${ORG}/${IMAGE}:latest .
+}
+
+function push_vnflcm {
+ docker push ${DOCKER_REPOSITORY}/${ORG}/${IMAGE}:${VERSION}
+ docker push ${DOCKER_REPOSITORY}/${ORG}/${IMAGE}:latest
}
build_vnflcm
+push_vnflcm
docker image list