From cfa9791d9c9f551b221f1217cb2a3e93b38e49c4 Mon Sep 17 00:00:00 2001 From: quicksilver Date: Fri, 13 Dec 2019 21:55:13 +0800 Subject: [PATCH] Update build enviroment Centos7 dockerfile --- docker/build_env/gpu/centos7/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/build_env/gpu/centos7/Dockerfile b/docker/build_env/gpu/centos7/Dockerfile index 0f8ef6c85c..28bffffdcd 100644 --- a/docker/build_env/gpu/centos7/Dockerfile +++ b/docker/build_env/gpu/centos7/Dockerfile @@ -4,15 +4,14 @@ ENV NVIDIA_DRIVER_CAPABILITIES compute,utility RUN yum install -y epel-release centos-release-scl-rh && yum install -y wget curl && \ wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local && \ - yum install -y ccache make automake git python3-pip libcurl-devel python3-devel boost-static devtoolset-7-gcc llvm-toolset-7.0-clang lcov \ + yum install -y ccache make automake git python3-pip libcurl-devel python3-devel boost-static devtoolset-6-gcc llvm-toolset-7.0-clang lcov \ && \ rm -rf /var/cache/yum/* -RUN scl enable devtoolset-7 bash +RUN echo "source scl_source enable devtoolset-6" >> /etc/profile.d/devtoolset-6.sh +RUN echo "source scl_source enable llvm-toolset-7" >> /etc/profile.d/llvm-toolset-7.sh ENV CLANG_TOOLS_PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin" -ENV PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin:$PATH" -ENV LD_LIBRARY_PATH="/opt/rh/llvm-toolset-7.0/root/usr/lib64:$LD_LIBRARY_PATH" COPY docker-entrypoint.sh /app/docker-entrypoint.sh