diff options
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 |