Commit 5bd2fbab authored by Timo Koch's avatar Timo Koch
Browse files

Image on ubuntu running DuMux 2.10 on Dune 2.5 and graphic support

parent 81076cc0
# DuMux docker container
FROM ubuntu:latest
MAINTAINER Timo Koch <timo.koch@iws.uni-stuttgart.de>
# get the package list
RUN apt-get update && apt-get dist-upgrade --no-install-recommends --yes && \
apt-get install --no-install-recommends --yes \
ca-certificates \
vim \
python-dev \
python-pip \
git \
pkg-config \
build-essential \
gfortran \
cmake \
mpi-default-bin \
mpi-default-dev \
libsuitesparse-dev \
libsuperlu-dev \
libeigen3-dev \
paraview \
doxygen \
texlive \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# create a dumux user
RUN useradd -m --home-dir /dumux dumux
# add user to video group for graphics
RUN usermod -a -G video dumux
USER dumux
WORKDIR /dumux
# clone dune dependencies
RUN git clone -b releases/2.5 https://gitlab.dune-project.org/core/dune-common.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/core/dune-geometry.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/core/dune-grid.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/core/dune-istl.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/core/dune-localfunctions.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/staging/dune-uggrid.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/extensions/dune-alugrid.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/extensions/dune-foamgrid.git
# clone dumux repository
RUN git clone -b releases/2.10 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git
# configure dumux
RUN ./dune-common/bin/dunecontrol --opts=./dumux/optim.opts all
# build doxygen documentation
RUN cd dumux/build-cmake && make doc
# make graphical output with paraview work
ENV QT_X11_NO_MITSHM 1
# run bash shell
CMD ["/bin/bash"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment