Skip to content

Commit

Permalink
Docker recipe for installation & fix docker (#422)
Browse files Browse the repository at this point in the history
* Docker recipe to install ior with various backends. #421

* Test recipe for ubuntu22.04
  • Loading branch information
JulianKunkel authored Jun 15, 2022
1 parent 6f55591 commit a4f7cbe
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
7 changes: 0 additions & 7 deletions testing/docker/ubuntu14.04/Dockerfile

This file was deleted.

11 changes: 11 additions & 0 deletions testing/docker/ubuntu22.04-all-backends/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:22.04

WORKDIR /data
RUN apt-get update
RUN apt-get install -y libopenmpi-dev openmpi-bin libhdf5-openmpi-dev git pkg-config gcc libaio-dev libpnetcdf-dev
RUN apt-get install -y sudo make
RUN git clone https://github.com/hpc/ior.git
RUN cd ior ; ./bootstrap
RUN cd ior ; ./configure --with-aio --with-hdf5 --with-ncmpi LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/openmpi CFLAGS=-I/usr/include/hdf5/openmpi && make -j

# librados-dev
6 changes: 6 additions & 0 deletions testing/docker/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:22.04

WORKDIR /data
RUN apt-get update
RUN apt-get install -y libopenmpi-dev openmpi-bin libhdf5-openmpi-dev git pkg-config gcc libaio-dev libpnetcdf-dev
RUN apt-get install -y sudo
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,32 @@
BUILD="$1"
groupadd -g $3 testuser
useradd -r -u $2 -g testuser testuser

ERROR=0

function runTest(){
FLAVOR="$1"
MPI_DIR="$2"
export IOR_MPIRUN="$3"
echo $FLAVOR in $BUILD/$FLAVOR
update-alternatives --set mpi $MPI_DIR
sudo -u testuser mkdir -p $BUILD/$FLAVOR

pushd $BUILD/$FLAVOR > /dev/null
sudo -u testuser /data/configure --with-hdf5 CFLAGS=-I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib|| exit 1
sudo -u testuser make V=1 || exit 1
sudo -u testuser /data/configure || exit 1
sudo -u testuser make || exit 1

#define the alias
ln -sf $(which mpiexec.$FLAVOR) /usr/bin/mpiexec

cd /data/

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

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

runTest openmpi /usr/lib/openmpi/include
runTest mpich /usr/include/mpich
export MPI_ARGS=""
runTest openmpi /usr/lib/openmpi/include "mpiexec -n"

exit $ERROR

0 comments on commit a4f7cbe

Please sign in to comment.