Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 32d09ea

Browse files
author
Zheng, YuyinX
committed
if not exist docker proxy
1 parent 9db50b9 commit 32d09ea

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

VCAC-A/Intel_Media_Analytics_Node/scripts/vcad_build.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,13 @@ install_vcad() {
654654
fi
655655
fi
656656
#set git proxy
657-
git_http_proxy=$HTTP_PROXY
658-
git_https_proxy=$HTTPS_PROXY
659-
657+
if [ ! $HTTP_PROXY ] ; then
658+
git_proxy_flag=0
659+
else
660+
git_proxy_flag=1
661+
git_http_proxy=$HTTP_PROXY
662+
git_https_proxy=$HTTPS_PROXY
663+
fi
660664
# generate install script
661665
_cd ${BUILD_DIR}
662666
cat > install_package_in_image.sh <<EOF
@@ -666,8 +670,10 @@ export LC_ALL=C
666670
apt update && apt install -y libjson-c3 libboost-program-options1.65-dev libboost-thread1.65 libboost-filesystem1.65 libusb-dev cron python3-pip build-essential curl wget libssl-dev ca-certificates git libboost-all-dev gcc-multilib g++-multilib libgtk2.0-dev pkg-config libpng-dev libcairo2-dev libpango1.0-dev libglib2.0-dev libusb-1.0-0-dev i2c-tools libgstreamer-plugins-base1.0-dev libavformat-dev libavcodec-dev libswscale-dev libgstreamer1.0-dev libusb-1.0-0-dev i2c-tools libjson-c-dev usbutils ocl-icd-libopencl* ocl-icd-opencl-dev libsm-dev libxrender-dev libavfilter-dev tzdata cpio libgtk-3-dev
667671
668672
rm -rf /usr/bin/python && cd /usr/bin && ln -s python3.6 python
669-
git config --global http.proxy ${git_http_proxy}
670-
git config --global https.proxy ${git_https_proxy}
673+
if [ ${git_proxy_flag} == 1 ];then
674+
git config --global http.proxy ${git_http_proxy}
675+
git config --global https.proxy ${git_https_proxy}
676+
fi
671677
cd /root/package
672678
pip3 install numpy-*.whl
673679
pip3 install opencv_python-*.whl

0 commit comments

Comments
 (0)