From 422a565dd9b2d147501a3e81dfd542255ec09438 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Tue, 22 Aug 2023 16:02:49 +0800 Subject: [PATCH] Fix openssl1.1.1 problem (#56366) * fix openssl bug * fix openssl bug * fix openssl bug * test * upgrade openssl version * fix * fix * update * fix openssl bug * fix * Update ci_dockerfile.sh --------- Co-authored-by: YUNSHEN XIE <1084314248@qq.com> --- cmake/external/brpc.cmake | 2 +- tools/dockerfile/ci_dockerfile.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cmake/external/brpc.cmake b/cmake/external/brpc.cmake index ff33e142add..e992c056302 100755 --- a/cmake/external/brpc.cmake +++ b/cmake/external/brpc.cmake @@ -13,7 +13,7 @@ # limitations under the License. include(ExternalProject) - +set(OPENSSL_USE_STATIC_LIBS ON) find_package(OpenSSL REQUIRED) message(STATUS "ssl:" ${OPENSSL_SSL_LIBRARY}) diff --git a/tools/dockerfile/ci_dockerfile.sh b/tools/dockerfile/ci_dockerfile.sh index defcdfb5fed..b9487be1002 100644 --- a/tools/dockerfile/ci_dockerfile.sh +++ b/tools/dockerfile/ci_dockerfile.sh @@ -50,6 +50,14 @@ function make_ubuntu_trt7_dockerfile(){ RUN apt remove -y libnccl* --allow-change-held-packages \&\& apt-get install -y --allow-unauthenticated libsndfile1 libnccl2=2.8.4-1+cuda10.2 libnccl-dev=2.8.4-1+cuda10.2 zstd pigz --allow-change-held-packages #g" ${dockerfile_name} } +function make_ubuntu_trt7_dockerfile_temp_ues(){ + dockerfile_name="Dockerfile.cuda102_cudnn8_gcc82_ubuntu16" + echo "FROM registry.baidubce.com/paddlepaddle/paddleqa:coverage-ci-temp-use" >> ${dockerfile_name} + echo "RUN wget https://www.openssl.org/source/openssl-1.1.1v.tar.gz && tar -xvf openssl-1.1.1v.tar.gz && cd openssl-1.1.1v && ./config -fPIC --prefix=/usr/local/ssl > /dev/null && make > /dev/null && make install > /dev/null && cd ../ && rm -rf openssl-1.1.1v*" >> ${dockerfile_name} + echo "ENV OPENSSL_ROOT_DIR=/usr/local/ssl" >> ${dockerfile_name} + echo "ENV LD_LIBRARY_PATH=/usr/local/ssl/lib:\g$LD_LIBRARY_PATH" >> ${dockerfile_name} +} + function make_cpu_dockerfile(){ dockerfile_name="Dockerfile.cuda9_cudnn7_gcc48_py35_centos6" sed "s##ubuntu:20.04#g" ./Dockerfile.ubuntu20 >${dockerfile_name} @@ -137,7 +145,7 @@ function make_ubuntu20_cu112_dockerfile(){ } function main() { - make_ubuntu_trt7_dockerfile + make_ubuntu_trt7_dockerfile_temp_ues make_cpu_dockerfile make_ce_framework_dockcerfile make_unbuntu20_cu12_dockerfile -- GitLab