@@ -22,25 +22,25 @@ USER root
2222# Installing necessary dependecies for preCICE
2323RUN apt-get -qq update && \
2424 apt-get -qq -y install \
25- build-essential \
26- software-properties-common \
27- cmake \
28- curl \
29- g++ \
30- gfortran \
31- git \
32- libbenchmark-dev \
33- libboost-all-dev \
34- libeigen3-dev \
35- libxml2-dev \
36- lsb-release \
37- petsc-dev \
38- python3-dev \
39- python3-numpy \
40- python3-pip \
41- python3-venv \
42- pkg-config \
43- wget
25+ build-essential \
26+ software-properties-common \
27+ cmake \
28+ curl \
29+ g++ \
30+ gfortran \
31+ git \
32+ libbenchmark-dev \
33+ libboost-all-dev \
34+ libeigen3-dev \
35+ libxml2-dev \
36+ lsb-release \
37+ petsc-dev \
38+ python3-dev \
39+ python3-numpy \
40+ python3-pip \
41+ python3-venv \
42+ pkg-config \
43+ wget
4444USER precice
4545
4646FROM precice_dependecies AS precice
@@ -187,4 +187,29 @@ RUN git clone https://github.com/precice/dealii-adapter.git &&\
187187 if [ -n "${DEALII_ADAPTER_PR}" ]; then git fetch origin pull/${DEALII_ADAPTER_PR}/head; fi && \
188188 git checkout ${DEALII_ADAPTER_REF} && \
189189 cmake . && \
190- make -j $(nproc)
190+ make -j $(nproc)
191+
192+ FROM precice_dependecies AS dumux
193+ USER root
194+ RUN apt-get update
195+ USER precice
196+ COPY --from=precice /home/precice/.local/ /home/precice/.local/
197+ ARG DUNEVERSION
198+ ARG DUMUXVERSION
199+ RUN mkdir dumux&&\
200+ cd dumux&&\
201+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-common.git -b releases/$DUNEVERSION &&\
202+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-geometry.git -b releases/$DUNEVERSION &&\
203+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-grid.git -b releases/$DUNEVERSION &&\
204+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-istl.git -b releases/$DUNEVERSION &&\
205+ git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-subgrid.git -b releases/$DUNEVERSION &&\
206+ git clone --depth 1 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git -b releases/$DUMUXVERSION &&\
207+ git clone -b cell_problems https://git.iws.uni-stuttgart.de/dumux-appl/dumux-phasefield.git &&\
208+ git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-SPGrid.git -b releases/$DUNEVERSION &&\
209+ git clone --depth 1 https://github.com/precice/dumux-adapter.git -b develop
210+ USER precice
211+ WORKDIR /home/precice/dumux
212+ ENV PATH ${WORKDIR}/dune-common/bin:${PATH}
213+ # build core DUNE, DuMuX and the adapter
214+ RUN dunecontrol --opts=cmake-test.opts all
215+ ENV DUNE_CONTROL_PATH=${WORKDIR}/dune-common/dune.module:${WORKDIR}/dune-geometry/dune.module:${WORKDIR}/dune-grid/dune.module:${WORKDIR}/dune-localfunctions/dune.module:${WORKDIR}/dune-istl/dune.module:${WORKDIR}/dune-subgrid/dune.module:${WORKDIR}/dumux/dune.module
0 commit comments