From cbadc9498f081ba7b6faf4afeb081863041276ef Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 17 Dec 2020 11:11:16 +0800 Subject: [PATCH 1/2] fix ubuntu18 install python3.8 error --- tools/dockerfile/Dockerfile.cuda10_ubuntu18_cinn | 2 +- tools/dockerfile/Dockerfile.ubuntu | 2 +- tools/dockerfile/Dockerfile.ubuntu18 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dockerfile/Dockerfile.cuda10_ubuntu18_cinn b/tools/dockerfile/Dockerfile.cuda10_ubuntu18_cinn index 964f082b561371..ed4fe92a588a14 100644 --- a/tools/dockerfile/Dockerfile.cuda10_ubuntu18_cinn +++ b/tools/dockerfile/Dockerfile.cuda10_ubuntu18_cinn @@ -112,7 +112,7 @@ RUN pip3 --no-cache-dir install -r /root/requirements.txt && \ # Older versions of patchelf limited the size of the files being processed and were fixed in this pr. # https://github.com/NixOS/patchelf/commit/ba2695a8110abbc8cc6baf0eea819922ee5007fa # So install a newer version here. -RUN wget -q http://mirrors.kernel.org/ubuntu/pool/universe/p/patchelf/patchelf_0.10-2_amd64.deb && \ +RUN wget -q https://paddle-ci.cdn.bcebos.com/patchelf_0.10-2_amd64.deb && \ dpkg -i patchelf_0.10-2_amd64.deb # Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service diff --git a/tools/dockerfile/Dockerfile.ubuntu b/tools/dockerfile/Dockerfile.ubuntu index a4d458021ab9c0..d68992717c5126 100644 --- a/tools/dockerfile/Dockerfile.ubuntu +++ b/tools/dockerfile/Dockerfile.ubuntu @@ -212,7 +212,7 @@ RUN apt-get install libprotobuf-dev -y # Older versions of patchelf limited the size of the files being processed and were fixed in this pr. # https://github.com/NixOS/patchelf/commit/ba2695a8110abbc8cc6baf0eea819922ee5007fa # So install a newer version here. -RUN wget -q http://mirrors.kernel.org/ubuntu/pool/universe/p/patchelf/patchelf_0.10-2_amd64.deb && \ +RUN wget -q https://paddle-ci.cdn.bcebos.com/patchelf_0.10-2_amd64.deb && \ dpkg -i patchelf_0.10-2_amd64.deb # Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service diff --git a/tools/dockerfile/Dockerfile.ubuntu18 b/tools/dockerfile/Dockerfile.ubuntu18 index 327b77d67a3989..64c94b4e1310df 100644 --- a/tools/dockerfile/Dockerfile.ubuntu18 +++ b/tools/dockerfile/Dockerfile.ubuntu18 @@ -40,7 +40,7 @@ RUN apt-get update && \ python3.5 python3.5-dev \ python3.6 python3.6-dev \ python3.7 python3.7-dev \ - python3.8 python3.8-dev && \ + python3.8 python3.8-dev python3.8-distutils && \ curl https://bootstrap.pypa.io/ez_setup.py -o - | python2.7 && easy_install pip && \ curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.5 && easy_install pip && \ curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && easy_install pip && \ @@ -112,7 +112,7 @@ RUN pip3 --no-cache-dir install -r /root/requirements.txt && \ # Older versions of patchelf limited the size of the files being processed and were fixed in this pr. # https://github.com/NixOS/patchelf/commit/ba2695a8110abbc8cc6baf0eea819922ee5007fa # So install a newer version here. -RUN wget -q http://mirrors.kernel.org/ubuntu/pool/universe/p/patchelf/patchelf_0.10-2_amd64.deb && \ +RUN wget -q https://paddle-ci.cdn.bcebos.com/patchelf_0.10-2_amd64.deb && \ dpkg -i patchelf_0.10-2_amd64.deb # Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service From 7a855d4449bb687b2bf6a5dfa15677a95851e1c5 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 17 Dec 2020 15:06:58 +0800 Subject: [PATCH 2/2] fix --- tools/dockerfile/Dockerfile.ubuntu18 | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dockerfile/Dockerfile.ubuntu18 b/tools/dockerfile/Dockerfile.ubuntu18 index 64c94b4e1310df..0ea09c3170e079 100644 --- a/tools/dockerfile/Dockerfile.ubuntu18 +++ b/tools/dockerfile/Dockerfile.ubuntu18 @@ -11,6 +11,7 @@ ARG WITH_AVX ENV WITH_GPU=${WITH_GPU:-ON} ENV WITH_AVX=${WITH_AVX:-ON} ENV DEBIAN_FRONTEND=noninteractive +ENV LD_LIBRARY_PATH=/usr/local/cuda-11.0/targets/x86_64-linux/lib:LD_LIBRARY_PATH ENV HOME /root # Add bash enhancements