File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
# Activate the upgraded versions of GCC and binutils
6
- source /opt/rh/devtoolset-2/enable
6
+ # See https://linux.web.cern.ch/centos7/docs/softwarecollections/#inst
7
+ source /opt/rh/devtoolset-8/enable
7
8
8
9
echo " Building Volta"
9
10
Original file line number Diff line number Diff line change 1
- FROM cern/slc6 -base
1
+ FROM cern/cc7 -base
2
2
3
3
# This repo file references a URL that is no longer valid. It also isn't used by the build
4
4
# toolchain, so we can safely remove it entirely
5
5
RUN rm /etc/yum.repos.d/epel.repo
6
6
7
+ # https://linux.web.cern.ch/centos7/docs/softwarecollections/#inst
7
8
# Tools needed for the build and setup process
8
9
RUN yum -y install wget tar
9
10
# Fetch the repo information for the devtoolset repo
10
- RUN wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
11
- # Install more recent GCC and binutils, to allow us to compile
12
- RUN yum -y install devtoolset-2-gcc devtoolset-2-binutils
11
+ RUN yum install -y centos-release-scl
12
+ # Install more recent GCC and binutils, to allow us to compile
13
+ RUN yum install -y devtoolset-8
13
14
14
- # Install Rust toolchain (need to do this manually since current rustup requires a more recent
15
- # glibc version than is available on RHEL/CentOS 6)
16
- RUN curl https://static.rust-lang.org/rustup/archive/1.25.1/x86_64-unknown-linux-gnu/rustup-init -sSf -o ~/rustup-init
17
- RUN chmod +x ~/rustup-init
18
- RUN ~/rustup-init -y --default-toolchain 1.63
15
+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
19
16
ENV PATH="/root/.cargo/bin:${PATH}"
You can’t perform that action at this time.
0 commit comments