Skip to content

Commit

Permalink
add basic ior for testing (#20)
Browse files Browse the repository at this point in the history
* add basic ior for testing

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Aug 23, 2023
1 parent 645b066 commit 3c68515
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
["fio", "ghcr.io/converged-computing/metric-fio:latest"],
["amg", "ghcr.io/converged-computing/metric-amg:latest"],
["pennant", "ghcr.io/converged-computing/metric-pennant:latest"],
["ior", "ghcr.io/converged-computing/metric-ior:latest"],
["charmpp", "ghcr.io/converged-computing/metric-charmpp:latest"],
["qmcpack", "ghcr.io/converged-computing/metric-qmcpack:latest"],
["quicksilver", "ghcr.io/converged-computing/metric-quicksilver:latest"],
Expand Down
49 changes: 49 additions & 0 deletions ior/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
ARG tag=latest
FROM ubuntu:${tag}
ENV DEBIAN_FRONTEND=noninteractive

# Example command
# pennant /opt/pennant/test/sedovsmall/sedovsmall.pnt

RUN apt-get update && \
apt-get install -y fftw3-dev fftw3 pdsh libfabric-dev libfabric1 \
openssh-client openssh-server \
dnsutils telnet strace cmake git g++ \
mpich unzip bzip2 pkg-config \
libhdf5-serial-dev \
gfarm-client m4 libgfarm-dev libs3-dev \
libcurl4-gnutls-dev libxml2 libssl-dev \
libpmem-dev libcephfs-dev

RUN git clone https://github.com/mar-file-system/aws4c /opt/aws4c && \
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.3.tar.gz && \
tar xzvf pnetcdf-1.12.3.tar.gz && \
cd pnetcdf-1.12.3 && \
./configure --prefix=/usr && \
make && \
make install

WORKDIR /opt
RUN wget https://github.com/hpc/ior/releases/download/4.0.0rc1/ior-4.0.0rc1.tar.gz && \
tar -xzvf ior-4.0.0rc1.tar.gz && \
rm ior-4.0.0rc1.tar.gz && \
mv ior-4.0.0rc1 ./ior

# Note I did as many as I quickly could here - would be good to add aws
WORKDIR /opt/ior
RUN ./configure --prefix=/usr \
--with-ncmpi --with-pmdk \
--with-cephfs --with-daos --with-gfarm && \
make && \
make install

# Hack for ssh for now...
RUN echo " LogLevel ERROR" >> /etc/ssh/ssh_config && \
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
echo " UserKnownHostsFile=/dev/null" >> /etc/ssh/ssh_config && \
cd /root && \
mkdir -p /run/sshd && \
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa && chmod og+rX . && \
cd .ssh && cat id_rsa.pub > authorized_keys && chmod 644 authorized_keys

EXPOSE 22

0 comments on commit 3c68515

Please sign in to comment.