FROM fedora:31 MAINTAINER Jean-Noel Grad RUN yum -y --nogpgcheck install \ gcc gcc-c++ make \ cmake \ # openmpi-devel \ fftw-devel \ # boost-devel boost-openmpi-devel \ git \ python3 \ python3-devel \ python3-Cython \ python3-pycodestyle \ python3-pylint \ python3-numpy \ python3-h5py \ # hdf5-openmpi-devel \ zlib-devel \ which \ vim \ ccache \ bzip2 \ findutils file diffutils \ && yum clean all # OpenMPI RUN cd /tmp \ && curl -sL https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.1.tar.bz2 | tar xj \ && cd openmpi-4.0.1 \ && ./configure --prefix=/usr \ && make -j`nproc` \ && make install ENV LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH}" # Boost RUN cd /tmp \ && mkdir boost \ && cd boost \ && curl -sL https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2 | tar xj \ && cd boost_1_69_0 \ && echo 'using mpi ;' > tools/build/src/user-config.jam \ && ./bootstrap.sh --with-libraries=filesystem,mpi,serialization,test \ && ./b2 -j $(nproc) install --prefix=/opt/boost \ && cd \ && rm -r /tmp/boost ENV BOOST_ROOT=/opt/boost LD_LIBRARY_PATH="/opt/boost/lib:${LD_LIBRARY_PATH}" RUN useradd -m espresso USER 1000 WORKDIR /home/espresso