summaryrefslogtreecommitdiffstats
path: root/deliveries/os_build_febe.sh
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2017-07-06 20:38:03 +0000
committerGerrit Code Review <gerrit@onap.org>2017-07-06 20:38:03 +0000
commitfec1ab242c9086a32b04e3ded4518dd20eeca7d3 (patch)
tree7b2436d3d7d4ea07f87ceedc946ae629a0ee5283 /deliveries/os_build_febe.sh
parent6771b0e2bf6b0df221c920466a495e84e83a44f5 (diff)
parent47d9cadde3ea38210db0324564960a9853d863a2 (diff)
Merge "Add proxy support in DockerFile"
Diffstat (limited to 'deliveries/os_build_febe.sh')
-rwxr-xr-xdeliveries/os_build_febe.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/deliveries/os_build_febe.sh b/deliveries/os_build_febe.sh
index a87831af..2d6117c3 100755
--- a/deliveries/os_build_febe.sh
+++ b/deliveries/os_build_febe.sh
@@ -84,5 +84,14 @@ cat dbca-create-mysql-1707-os.sql ../../dbca-common/db-scripts/dbca-ddl-mysql-17
# install into docker
cd $CURRENTDIR
-echo "running: docker build -t ${IMGNAME} --build-arg VERSION=${VERSION} --build-arg PORTAL_SDK_DIR=${PORTAL_SDK_DIR} --build-arg SDK_DIR=${SDK_DIR} --build-arg FE_DIR=${FE_DIR} --build-arg PORTAL_DBC_DIR=${PORTAL_DBC_DIR} -f ./os_Dockerfile ."
-docker build -t ${IMGNAME} --build-arg VERSION=${VERSION} --build-arg PORTAL_SDK_DIR=${PORTAL_SDK_DIR} --build-arg SDK_DIR=${SDK_DIR} --build-arg FE_DIR=${FE_DIR} --build-arg PORTAL_DBC_DIR=${PORTAL_DBC_DIR} -f ./os_Dockerfile .
+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
+
+EXEC_CMD="docker build -t ${IMGNAME} ${PROXY_ARGS} --build-arg VERSION=${VERSION} --build-arg PORTAL_SDK_DIR=${PORTAL_SDK_DIR} --build-arg SDK_DIR=${SDK_DIR} --build-arg FE_DIR=${FE_DIR} --build-arg PORTAL_DBC_DIR=${PORTAL_DBC_DIR} -f ./os_Dockerfile ."
+echo $EXEC_CMD
+$EXEC_CMD \ No newline at end of file