File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
- # amd64 dependencies
1
+ # centos7 amd64 dependencies
2
2
FROM --platform=linux/amd64 nvidia/cuda:11.3.1-devel-centos7 AS base-amd64
3
3
RUN yum install -y https://repo.ius.io/ius-release-el7.rpm centos-release-scl && \
4
4
yum update -y && \
5
5
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ git236 wget
6
6
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
7
7
ENV PATH /opt/rh/devtoolset-10/root/usr/bin:$PATH
8
8
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
19
13
20
14
FROM base-${TARGETARCH}
21
15
ARG TARGETARCH
You can’t perform that action at this time.
0 commit comments