Skip to content

Commit

Permalink
Dockerfile CentOS8
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKunkel committed Jun 15, 2022
1 parent b4d1d25 commit 308f3e8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testing/docker/centos8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM centos:8

WORKDIR /data
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum update -y
RUN yum install -y mpich openmpi git pkg-config nano gcc bzip2 patch gcc-c++ make mpich-devel openmpi-devel
RUN yum install -y sudo
RUN yum install -y autoconf automake
35 changes: 35 additions & 0 deletions testing/docker/centos8/run-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

BUILD="$1"

groupadd -g $3 testuser
useradd -r -u $2 -g testuser testuser
ERROR=0

function runTest(){
P=$PATH
FLAVOR="$1"
MPI_DIR="$2"

echo $FLAVOR in $BUILD/$FLAVOR
sudo -u testuser mkdir -p $BUILD/$FLAVOR

pushd $BUILD/$FLAVOR > /dev/null

export PATH=$MPI_DIR/bin:$PATH
sudo -u testuser PATH=$PATH /data/configure || exit 1
sudo -u testuser PATH=$PATH make || exit 1

cd /data/
sudo -u testuser PATH=$PATH IOR_BIN_DIR=$BUILD/$FLAVOR/src IOR_OUT=$BUILD/$FLAVOR/test ./testing/basic-tests.sh

ERROR=$(($ERROR + $?))
popd > /dev/null
PATH=$P
}


runTest openmpi /usr/lib64/openmpi/
runTest mpich /usr/lib64/mpich

exit $ERROR

0 comments on commit 308f3e8

Please sign in to comment.