FROM ubuntu:20.04 # Installing as root: docker images are usually set up as root. # Since some autotools scripts might complain about this being unsafe, we set # FORCE_UNSAFE_CONFIGURE=1 to avoid configure errors. ENV FORCE_UNSAFE_CONFIGURE=1 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y RUN apt-get install -y git RUN apt-get install -y python RUN apt-get install -y cmake RUN apt-get install -y build-essential RUN apt-get install -y gfortran RUN apt-get install -y doxygen RUN apt-get install -y pkg-config RUN apt-get install -y libmkl-dev RUN apt-get autoremove -y RUN git clone --recursive https://gitlab.inria.fr/solverstack/fabulous.git && \ cd fabulous && \ mkdir build && \ cd build && \ cmake .. -DBUILD_SHARED_LIBS=ON -DFABULOUS_BLASMT=ON -DFABULOUS_BUILD_C_API=ON -DFABULOUS_BUILD_DOC=ON -DFABULOUS_BUILD_EXAMPLES=ON -DFABULOUS_BUILD_Fortran_API=ON -DFABULOUS_BUILD_TESTS=ON && \ make -j3 install RUN git clone https://gitlab+deploy-token-312:TS92JKGsq5S_xpbKo9df@gitlab.inria.fr/solverstack/distrib.git && \ cd distrib/cmake/test/fabulous && \ mkdir build && \ cd build && \ cmake .. && \ make && \ ./test_fabulous_c && ./test_fabulous_cpp