Skip to content

Commit 35fabe9

Browse files
committed
Update the RHEL 7 Dockerfile setup for building on Rust 1.74
1 parent 3cde17c commit 35fabe9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

ci/build-linux.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -e
44

55
# 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
78

89
echo "Building Volta"
910

ci/docker/Dockerfile

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
FROM cern/slc6-base
1+
FROM cern/cc7-base
22

33
# This repo file references a URL that is no longer valid. It also isn't used by the build
44
# toolchain, so we can safely remove it entirely
55
RUN rm /etc/yum.repos.d/epel.repo
66

7+
# https://linux.web.cern.ch/centos7/docs/softwarecollections/#inst
78
# Tools needed for the build and setup process
89
RUN yum -y install wget tar
910
# 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
1314

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
1916
ENV PATH="/root/.cargo/bin:${PATH}"

0 commit comments

Comments
 (0)