@@ -189,4 +189,49 @@ RUN git clone https://github.com/precice/dealii-adapter.git &&\
189189 if [ -n "${DEALII_ADAPTER_PR}" ]; then git fetch origin pull/${DEALII_ADAPTER_PR}/head; fi && \
190190 git checkout ${DEALII_ADAPTER_REF} && \
191191 cmake . && \
192- make -j $(nproc)
192+ make -j $(nproc)
193+
194+
195+ FROM precice_dependecies AS micro_manager
196+ USER precice
197+ WORKDIR /home/precice
198+ COPY --from=precice /home/precice/.local/ /home/precice/.local/
199+
200+ ARG MICRO_MANAGER_VERSION
201+ RUN python3 -m venv /home/precice/venv && \
202+ . /home/precice/venv/bin/activate && \
203+ git clone https://github.com/precice/micro-manager.git && \
204+ cd micro-manager && \
205+ git checkout ${MICRO_MANAGER_VERSION} && \
206+ pip3 install .
207+
208+ FROM micro_manager AS dumux_adapter
209+ USER root
210+ COPY --from=precice /home/precice/.local/ /home/precice/.local/
211+ ARG DUNE_VERSION
212+ ARG DUMUX_VERSION
213+ USER precice
214+ WORKDIR /home/precice
215+ RUN mkdir dumux&&\
216+ cd dumux&&\
217+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-common.git -b releases/${DUNE_VERSION} &&\
218+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-geometry.git -b releases/${DUNE_VERSION} &&\
219+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-grid.git -b releases/${DUNE_VERSION} &&\
220+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-istl.git -b releases/${DUNE_VERSION} &&\
221+ git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-subgrid.git -b releases/${DUNE_VERSION} &&\
222+ git clone --depth 1 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git -b releases/${DUMUX_VERSION} &&\
223+ git clone -b cell_problems https://git.iws.uni-stuttgart.de/dumux-appl/dumux-phasefield.git &&\
224+ git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-SPGrid.git -b releases/${DUNE_VERSION} &&\
225+ git clone --depth 1 https://gitlab.dune-project.org/core/dune-localfunctions.git -b releases/${DUNE_VERSION}
226+ WORKDIR /home/precice/dumux
227+ ENV PATH="/home/precice/dumux/dune-common/bin:${PATH}"
228+ # build core DUNE, DuMuX and the adapter
229+ ARG DUMUX_ADAPTER_PR
230+ ARG DUMUX_ADAPTER_REF
231+ RUN git clone https://github.com/precice/dumux-adapter.git &&\
232+ cd dumux-adapter && \
233+ if [ -n "${DUMUX_ADAPTER_PR}" ]; then git fetch origin pull/${DUMUX_ADAPTER_PR}/head; fi && \
234+ git checkout ${DUMUX_ADAPTER_REF} && \
235+ cd .. &&\
236+ ./dune-common/bin/dunecontrol --opts=./dumux/cmake.opts cmake &&\
237+ ./dune-common/bin/dunecontrol make -j $(nproc)
0 commit comments