Skip to content

Commit

Permalink
Update to a CentOS 7 docker container for binary compatible builds.
Browse files Browse the repository at this point in the history
CentOS 6 just went EOL at the end of November 2020; as of today, the
repository seems to have disappeared, so our CI builds are failing. This
PR updates us to CentOS 7, which should be usable until June 30, 2024.
  • Loading branch information
cfallin committed Dec 2, 2020
1 parent 51c1d4b commit 04e3730
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/binary-compatible-builds/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ if (process.env.CENTOS !== undefined) {
let path = process.env.PATH;
path = `${path}:/rust/bin`;
path = `/opt/rh/devtoolset-8/root/usr/bin:${path}`;
path = `/opt/rh/rh-python36/root/usr/bin:${path}`;

// Spawn a container daemonized in the background which we'll connect to via
// `docker exec`. This'll have access to the current directory.
Expand All @@ -52,7 +51,7 @@ child_process.execFileSync('docker', [
'-v', `${process.cwd()}:${process.cwd()}`,
'-v', `${child_process.execSync('rustc --print sysroot').toString().trim()}:/rust:ro`,
'--env', `PATH=${path}`,
'centos:6',
'centos:7',
], stdio);

// Use ourselves to run future commands
Expand All @@ -63,7 +62,7 @@ const exec = s => {
child_process.execSync(`docker exec centos ${s}`, stdio);
};
exec('yum install -y centos-release-scl cmake xz epel-release');
exec('yum install -y rh-python36 patchelf unzip');
exec('yum install -y python3 patchelf unzip');
exec('yum install -y devtoolset-8-gcc devtoolset-8-binutils devtoolset-8-gcc-c++');
exec('yum install -y git');

Expand Down

0 comments on commit 04e3730

Please sign in to comment.