summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-31 17:47:58 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-31 17:47:58 +0800
commit48ef2472147db344545d15213f7a0cf91a5db864 (patch)
treed1820753ff59e1e536380f1286325e3d1194994e
parentf6cb853c7128df75168664821a2cbcf5cf2ac674 (diff)
Add docker push command for vfc-gvnfm-vnflcm
Change-Id: Ia400d6d4e6ba698dc5e731194fff13ef11ee510d Issue-Id: VFC-203 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-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