| LABEL maintainer=Clement Verna <cverna@fedoraproject.org> |
| ENV DISTTAG=f42container FGC=f42 FBR=f42 |
| ADD fedora-20250330.tar / # buildkit |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c dnf install -y gcc wget perl git autoconf automake libtool m4 gettext bzip2-libs libtool bzip2 xz mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel isl-devel g++ gcc-gnat gcc-gdc libgphobos-static # buildkit |
| RUN /bin/sh -c dnf install -y gmp mpfr fftw awk # buildkit |
| RUN /bin/sh -c dnf install -y dnf-plugins-core # buildkit |
| RUN /bin/sh -c dnf install -y openmpi openmpi-devel # buildkit |
| RUN /bin/sh -c dnf install -y hdf5 hdf5-devel hdf5-static # buildkit |
| RUN /bin/sh -c dnf group install -y development-tools # buildkit |
| RUN /bin/sh -c dnf install -y mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel isl-devel g++ gcc-gnat gcc-gdc libgphobos-static openssl-devel # buildkit |
| ARG user=researcher |
| ARG group=researcher |
| ARG uid=1000 |
| ARG gid=1000 |
| RUN |4 user=researcher group=researcher uid=1000 gid=1000 /bin/sh -c groupadd -g ${gid} ${group} # buildkit |
| RUN |4 user=researcher group=researcher uid=1000 gid=1000 /bin/sh -c useradd -u ${uid} -g ${group} -m ${user} # buildkit |
| USER 1000:1000 |
| SHELL [/bin/bash -c] |
| ARG prefix=/home/researcher/libs |
| WORKDIR /home/researcher/libs |
| WORKDIR /home/researcher/libs |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c wget http://usqcd-software.github.io/downloads/c-lime/lime-1.3.2.tar.gz # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c tar xvzf lime-1.3.2.tar.gz # buildkit |
| WORKDIR /home/researcher/libs/lime-1.3.2 |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c ./configure --prefix ${prefix} # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c make all install # buildkit |
| ENV PATH=/usr/lib64/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LD_LIBRARY_PATH=/usr/lib64/openmpi/lib |
| WORKDIR /home/researcher |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c git clone https://github.com/paboyle/Grid.git # buildkit |
| WORKDIR /home/researcher/Grid |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c git checkout 5a4f9bf2e35787e39e4f87c37d8acd0c56fa49c9 # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c ./bootstrap.sh # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c mkdir build # buildkit |
| WORKDIR /home/researcher/Grid/build |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c ../configure --enable-comms=mpi-auto --enable-simd=AVX2 --enable-shm=shmopen --prefix=${prefix} CXX=g++ MPICXX=mpicc LDFLAGS=-L${prefix}/lib/ CXXFLAGS="-I${prefix}/include/ -std=c++17 -fpermissive" # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c make -j 4 # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c make install # buildkit |
| WORKDIR /home/researcher |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c git clone https://github.com/aportelli/Hadrons.git # buildkit |
| WORKDIR /home/researcher/Hadrons |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c git checkout 9f5ed3e818d6293f84c950e135015062309dbaa8 # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c ./bootstrap.sh # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c mkdir build # buildkit |
| WORKDIR /home/researcher/Hadrons/build |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c ../configure --with-grid=${prefix} --prefix=${prefix} # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c make -j4 # buildkit |
| RUN |5 user=researcher group=researcher uid=1000 gid=1000 prefix=/home/researcher/libs /bin/bash -c make install # buildkit |