Skip to content

Commit d890890

Browse files
committed
use lower glibc versions in Dockerfile.build
1 parent 89ba19f commit d890890

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

Dockerfile.build

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# amd64 dependencies
1+
# centos7 amd64 dependencies
22
FROM --platform=linux/amd64 nvidia/cuda:11.3.1-devel-centos7 AS base-amd64
33
RUN yum install -y https://repo.ius.io/ius-release-el7.rpm centos-release-scl && \
44
yum update -y && \
55
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ git236 wget
66
RUN wget "https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.sh" -O cmake-installer.sh && chmod +x cmake-installer.sh && ./cmake-installer.sh --skip-license --prefix=/usr/local
77
ENV PATH /opt/rh/devtoolset-10/root/usr/bin:$PATH
88

9-
# arm64 dependencies
10-
FROM --platform=linux/arm64 nvidia/cuda:11.3.1-devel-ubuntu18.04 AS base-arm64
11-
RUN apt-get update && \
12-
apt-get install -y git build-essential wget software-properties-common && \
13-
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
14-
apt-get update && \
15-
apt-get install -y gcc-9 g++-9 && \
16-
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
17-
update-alternatives --config gcc
18-
RUN wget "https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-aarch64.sh" -O cmake-installer.sh && chmod +x cmake-installer.sh && ./cmake-installer.sh --skip-license --prefix=/usr/local
9+
# centos8 arm64 dependencies
10+
FROM --platform=linux/arm64 nvidia/cuda-arm64:11.3.1-devel-centos8 AS base-arm64
11+
RUN sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
12+
RUN yum install -y git cmake
1913

2014
FROM base-${TARGETARCH}
2115
ARG TARGETARCH

0 commit comments

Comments
 (0)