From ced6ab6d3cf4758ef0143a84854cde56700e9786 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Wed, 22 Dec 2021 21:35:16 +0800 Subject: [PATCH] Update CE-Framework doccker (#38270) --- paddle/scripts/docker/root/.bashrc | 3 +-- tools/dockerfile/build_scripts/install_gcc.sh | 4 ++-- tools/dockerfile/ci_dockerfile.sh | 6 ++++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/paddle/scripts/docker/root/.bashrc b/paddle/scripts/docker/root/.bashrc index 2f9c2a9fe92..984427434b9 100755 --- a/paddle/scripts/docker/root/.bashrc +++ b/paddle/scripts/docker/root/.bashrc @@ -37,5 +37,4 @@ NO_COLOUR="\[\033[0m\]" GREEN="\[\033[1;32m\]" WHITE="\[\033[1;37m\]" -export PS1="\[\033[1;33m\]λ $WHITE\h $GREEN\w$YELLOW\$(__git_ps1 \" \[\033[35m\]{\[\033[36m\]%s\[\033[35m\]}\")$NO_COLOUR " - +export PS1="\[\033[1;33m\]λ $WHITE\h $GREEN\w $NO_COLOUR" diff --git a/tools/dockerfile/build_scripts/install_gcc.sh b/tools/dockerfile/build_scripts/install_gcc.sh index a95bc99a608..0edd09a99ec 100644 --- a/tools/dockerfile/build_scripts/install_gcc.sh +++ b/tools/dockerfile/build_scripts/install_gcc.sh @@ -30,7 +30,7 @@ else fi if [ "$1" == "gcc82" ]; then - wget -q https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz + wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz tar -xvf gcc-8.2.0.tar.xz && \ cd gcc-8.2.0 && \ unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \ @@ -44,7 +44,7 @@ if [ "$1" == "gcc82" ]; then ln -s /usr/local/gcc-8.2/lib64/libstdc++.so.6 ${lib_so_6} && \ cp /usr/local/gcc-8.2/lib64/libstdc++.so.6.0.25 ${lib_path} elif [ "$1" == "gcc54" ]; then - wget -q https://paddle-ci.gz.bcebos.com/gcc-5.4.0.tar.gz + wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-5.4.0.tar.gz tar -xzf gcc-5.4.0.tar.gz && \ cd gcc-5.4.0 && \ unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \ diff --git a/tools/dockerfile/ci_dockerfile.sh b/tools/dockerfile/ci_dockerfile.sh index bb8f9deabe7..fd814b99016 100644 --- a/tools/dockerfile/ci_dockerfile.sh +++ b/tools/dockerfile/ci_dockerfile.sh @@ -79,7 +79,7 @@ function make_cinn_dockerfile(){ function make_ce_framework_dockcerfile(){ dockerfile_name="Dockerfile.cuda11.2_cudnn8_gcc82_trt8" - sed "s//11.2.0-cudnn8-devel-ubuntu18.04/g" ./Dockerfile.ubuntu18 >${dockerfile_name} + sed "s//11.2.0-cudnn8-devel-ubuntu16.04/g" ./Dockerfile.ubuntu >${dockerfile_name} dockerfile_line=$(wc -l ${dockerfile_name}|awk '{print $1}') sed -i "7i RUN chmod 777 /tmp" ${dockerfile_name} sed -i "${dockerfile_line}i RUN wget --no-check-certificate -q https://paddle-edl.bj.bcebos.com/hadoop-2.7.7.tar.gz \&\& \ @@ -100,9 +100,11 @@ function make_ce_framework_dockcerfile(){ RUN ln -s /usr/local/gcc-8.2/bin/g++ /usr/bin/g++ \\ ENV PATH=/usr/local/gcc-8.2/bin:\$PATH #g" ${dockerfile_name} sed -i 's#RUN bash /build_scripts/install_trt.sh#RUN bash /build_scripts/install_trt.sh trt8034#g' ${dockerfile_name} + sed -i 's#28/af/2c76c8aa46ccdf7578b83d97a11a2d1858794d4be4a1610ade0d30182e8b/pip-20.0.1.tar.gz#b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz#g' ${dockerfile_name} + sed -i 's#pip-20.0.1#pip-21.0.1#g' ${dockerfile_name} + sed -i 's#python setup.py install#python3.7 setup.py install#g' ${dockerfile_name} } - function main() { make_ubuntu_dockerfile make_centos_dockerfile -- GitLab