diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 09:35:20 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 09:36:29 +0800 |
commit | d25d9fb96d25c4b5be08f5affd07db22516bfb2b (patch) | |
tree | fb617c17a3befd3f168855d90cf7de8ead2f9d7e /docker/build_image.sh | |
parent | e676d851e8bba882094d972aa6a9ee5409067891 (diff) |
Move docker dir to root dir
Change-Id: Iea49ff5a41b09b07fadd29b54ad46164292d3823
Issue-Id: VFC-208
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'docker/build_image.sh')
-rwxr-xr-x | docker/build_image.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/build_image.sh b/docker/build_image.sh new file mode 100755 index 00000000..3c625248 --- /dev/null +++ b/docker/build_image.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +MYSQL_ROOT_PASSWORD="root" +PROXY_ARGS="" + +if [ $HTTP_PROXY ]; then + PROXY_ARGS+="--build-arg HTTP_PROXY=${HTTP_PROXY}" +fi +if [ $HTTPS_PROXY ]; then + PROXY_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}" +fi + +function build_lcm { + cd ../ + docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -f docker/Dockerfile -t vfc-nfvo-lcm . +} + +build_lcm +docker image list |