diff options
Diffstat (limited to 'lcm/docker/build_image.sh')
-rwxr-xr-x | lcm/docker/build_image.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lcm/docker/build_image.sh b/lcm/docker/build_image.sh new file mode 100755 index 00000000..bbe2f84e --- /dev/null +++ b/lcm/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_vnflcm { + cd ../ + docker build ${PROXY_ARGS} --build-arg MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -f docker/Dockerfile -t vfc-gvnfm-vnflcm . +} + +build_vnflcm +docker image list |