-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test assets are running in fresh environnement (CentOS7) (#898)
- Loading branch information
1 parent
1134553
commit 224a10a
Showing
2 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM centos:7 | ||
|
||
RUN \ | ||
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo && \ | ||
yum update -y && \ | ||
yum install -y centos-release-scl && \ | ||
#not a typo, centos-release-scl is needed to install devtoolset-10 but introduce deprecated mirror && \ | ||
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo && \ | ||
yum update -y && \ | ||
yum install -y wget git epel-release redhat-lsb-core gcc gcc-c++ make scl-utils && \ | ||
yum install -y devtoolset-10-gcc* environment-modules rpm-build zlib-devel bzip2 | ||
|
||
RUN \ | ||
source /opt/rh/devtoolset-10/enable && \ | ||
wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.6.tar.bz2 && \ | ||
tar -xvf openmpi-4.1.6.tar.bz2 && \ | ||
cd openmpi-4.1.6 && \ | ||
./configure --prefix=/usr/lib64/openmpi && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd - && \ | ||
rm openmpi-4.1.6.tar.bz2 && \ | ||
rm -rf openmpi-4.1.6 |