summaryrefslogtreecommitdiffstats
path: root/lcm/docker/build_image.sh
blob: bbe2f84e33327dcd151de01f70a5a0fdec9815da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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