diff --git a/Dockerfile b/Dockerfile index 4335fb39fe5380932a21415211694c92a211ce70..f448c414b77dd116af6af767fc78a35bd192fdef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,23 @@ RUN zypper install -y git \ && zypper install -y -t pattern devel_basis devel_C_C++ devel_java \ && zypper install -y python curl \ && zypper install -y boost-devel cmake cgal-devel lcov \ - && zypper install -y gcc7-c++ gcc-fortran gcc8-fortran \ - && zypper ar -f -n OSS http://download.opensuse.org/tumbleweed/repo/oss OSS \ - && zypper install -y gcc8 gcc8-c++ \ + && zypper install -y gcc9 gcc9-c++ gcc9-fortran \ && zypper install -y libqt5-qtbase-devel \ && zypper install -y wget \ && zypper install -y doxygen \ - && zypper install -y openmpi3-devel + && zypper install -y openmpi4-devel \ + && zypper install -y openblas-devel openblas-devel-headers \ + && zypper install -y libopenblas_pthreads0 libopenblas_pthreads-devel \ + && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 \ + && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9 \ + && update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 9 +# Define the ENTRYPOINT for subsequent commands (CMD) +ENTRYPOINT ["/bin/bash", "-l", "-c"] +# SHELL defines which login shell will be used within RUN steps +SHELL ["/bin/bash", "-l", "-c"] +# By default the container will start a bash shell +CMD ["bash"] + +# Source MPI environment script +RUN echo "source /usr/lib64/mpi/gcc/openmpi4/bin/mpivars.sh" >> /etc/bash.bashrc