add http params in serving/scripts/build.sh (#661)

* add http params in serving/scripts/build.sh

* Update build.sh

Co-authored-by: heliqi <1101791222@qq.com>
This commit is contained in:
Zeref996
2022-11-22 19:59:39 +08:00
committed by GitHub
parent 7ce3da6556
commit 521ec87cf5

View File

@@ -32,6 +32,8 @@ fi
nvidia-docker run -it --rm --name build_fd \ nvidia-docker run -it --rm --name build_fd \
-v`pwd`/..:/workspace/fastdeploy \ -v`pwd`/..:/workspace/fastdeploy \
-e "http_proxy=${http_proxy}" \
-e "https_proxy=${https_proxy}" \
nvcr.io/nvidia/tritonserver:21.10-py3-min \ nvcr.io/nvidia/tritonserver:21.10-py3-min \
bash -c \ bash -c \
'cd /workspace/fastdeploy/python; 'cd /workspace/fastdeploy/python;
@@ -41,11 +43,11 @@ nvidia-docker run -it --rm --name build_fd \
ln -s /usr/bin/python3 /usr/bin/python; ln -s /usr/bin/python3 /usr/bin/python;
export PATH=/workspace/fastdeploy/serving/cmake-3.18.6-Linux-x86_64/bin:$PATH; export PATH=/workspace/fastdeploy/serving/cmake-3.18.6-Linux-x86_64/bin:$PATH;
export WITH_GPU=ON; export WITH_GPU=ON;
export ENABLE_TRT_BACKEND=ON; export ENABLE_TRT_BACKEND=OFF;
export TRT_DIRECTORY=/workspace/fastdeploy/serving/TensorRT-8.4.1.5/; export TRT_DIRECTORY=/workspace/fastdeploy/serving/TensorRT-8.4.1.5/;
export ENABLE_ORT_BACKEND=ON; export ENABLE_ORT_BACKEND=OFF;
export ENABLE_PADDLE_BACKEND=ON; export ENABLE_PADDLE_BACKEND=OFF;
export ENABLE_OPENVINO_BACKEND=ON; export ENABLE_OPENVINO_BACKEND=OFF;
export ENABLE_VISION=ON; export ENABLE_VISION=ON;
export ENABLE_TEXT=ON; export ENABLE_TEXT=ON;
python setup.py build; python setup.py build;
@@ -68,15 +70,17 @@ echo "start build FD CPU library"
docker run -it --rm --name build_fd \ docker run -it --rm --name build_fd \
-v`pwd`/..:/workspace/fastdeploy \ -v`pwd`/..:/workspace/fastdeploy \
-e "http_proxy=${http_proxy}" \
-e "https_proxy=${https_proxy}" \
paddlepaddle/fastdeploy:21.10-cpu-only-buildbase \ paddlepaddle/fastdeploy:21.10-cpu-only-buildbase \
bash -c \ bash -c \
'cd /workspace/fastdeploy/python; 'cd /workspace/fastdeploy/python;
rm -rf .setuptools-cmake-build dist; rm -rf .setuptools-cmake-build dist;
ln -s /usr/bin/python3 /usr/bin/python; ln -s /usr/bin/python3 /usr/bin/python;
export WITH_GPU=OFF; export WITH_GPU=OFF;
export ENABLE_ORT_BACKEND=ON; export ENABLE_ORT_BACKEND=OFF;
export ENABLE_PADDLE_BACKEND=ON; export ENABLE_PADDLE_BACKEND=OFF;
export ENABLE_OPENVINO_BACKEND=ON; export ENABLE_OPENVINO_BACKEND=OFF;
export ENABLE_VISION=ON; export ENABLE_VISION=ON;
export ENABLE_TEXT=ON; export ENABLE_TEXT=ON;
python setup.py build; python setup.py build;