Skip to content

Commit

Permalink
Monthly maintenance (#46)
Browse files Browse the repository at this point in the history
Lighter docker container
---------

Signed-off-by: Umberto Zerbinati <[email protected]>
Co-authored-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
UZerbinati and Umberto Zerbinati authored Sep 25, 2024
1 parent e555ed6 commit 3d12d14
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ RUN pip install numpy scipy cython mpi4py pytest pytest-mpi
RUN cd ~ && git clone https://gitlab.com/petsc/petsc.git
RUN cd ~/petsc \
&& python configure --download-chaco \
--download-cmake \
--download-eigen \
--with-openmpi=1 \
--download-hypre \
--download-metis \
--download-parmetis \
--download-ml \
--download-mumps \
--download-scalapack \
--download-superlu_dist \
--with-c2html=0 \
--with-cxx-dialect=C++11 \
--with-debugging=0 \
Expand All @@ -51,6 +47,7 @@ RUN cd ~/slepc \
&& make
#Building ngsolve
ENV LD_LIBRARY_PATH /root/petsc/linux_debug/lib
RUN pip install netgen-occt-devel netgen-occt
RUN mkdir -p ~/ngsuite \
&& cd ~/ngsuite \
&& git clone https://github.com/NGSolve/ngsolve.git ngsolve-src \
Expand All @@ -59,7 +56,7 @@ RUN mkdir -p ~/ngsuite \
&& mkdir ~/ngsuite/ngsolve-build \
&& mkdir ~/ngsuite/ngsolve-install \
&& cd ~/ngsuite/ngsolve-build \
&& cmake -DCMAKE_INSTALL_PREFIX=~/ngsuite/ngsolve-install ~/ngsuite/ngsolve-src -DUSE_MPI=ON -DBUILD_OCC=ON \
&& cmake -DCMAKE_INSTALL_PREFIX=~/ngsuite/ngsolve-install ~/ngsuite/ngsolve-src -DUSE_MPI=ON -DBUILD_OCC=OFF\
&& make && make install
#Adding NGS to PYTHONPATH
ENV PYTHONPATH /root/petsc/linux_debug/lib:/root/slepc/linux_debug/lib:/root/ngsuite/ngsolve-install/lib/python3.10/site-packages

0 comments on commit 3d12d14

Please sign in to comment.