代码拉取完成,页面将自动刷新
FROM opensuse/leap:15.2
RUN zypper update -y
# note what we need to compile neci on a clean ubuntu docker image
# and i think i should use python2.7-slim, as we need python for the templating
# cmake
# gfortran
# mpi somehow
# lapack + blas
# hdf5 maybe..
# MPI definetly! especially for the test_suite i need MPI, since it tests it MPI
RUN zypper install -y cmake
RUN zypper install -y gcc-fortran
RUN zypper install -y blas-devel
RUN zypper install -y lapack-devel
RUN zypper install -y gcc-c++
# i still have to figure out what i need instead of this:
#RUN apt-get install -y build-essential
RUN zypper install -y python
RUN zypper install -y openmpi
RUN zypper install -y openmpi-devel
# but somehow zypper does not add this to the path.. so do it manually
ENV PATH=/usr/lib64/mpi/gcc/openmpi/bin:${PATH}
ENV INCLUDE=/usr/lib64/mpi/gcc/openmpi/include:/usr/lib64/mpi/gcc/openmpi/lib64:${INCLUDE}
ENV LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64:${LD_LIBRARY_PATH}
RUN zypper install -y git
# already included in cmake package:
#RUN apt-get install -y cmake-curses-gui
# to enable hdf5 compilation with cmake we also need:
RUN zypper install -y zlib zlib-devel
RUN git clone https://github.com/jsspencer/testcode /testcode
RUN export PYTHONPATH=/testcode/lib:${PYTHONPATH}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。