Commit 0a79ab0b authored by Lukas Riedel's avatar Lukas Riedel

Add Dockerfile for building DUNE environment

parent 8d9b6011
FROM ubuntu:bionic
LABEL maintainer="lriedel@iup.uni-heidelberg.de"
# number of cores for parallel builds
ARG PROCNUM=1
RUN apt-get clean && apt-get update && apt-get install -y \
cmake \
doxygen \
gcc \
g++ \
gfortran \
git \
libatlas-base-dev \
libfftw3-dev \
libfftw3-mpi-dev \
libfreetype6-dev \
libhdf5-mpi-dev \
libmetis-dev \
libopenmpi-dev \
libpng-dev \
libparmetis-dev \
libsuperlu-dev \
libxft-dev \
locales \
python3-dev \
python3-pip \
&& apt-get clean
RUN rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
WORKDIR /opt/dune
RUN git clone https://gitlab.dune-project.org/staging/dune-uggrid.git -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/oklein/dune-randomfield.git -b master \
&& git clone https://gitlab.dune-project.org/core/dune-common -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/core/dune-geometry -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/core/dune-grid -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/core/dune-istl -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/core/dune-localfunctions -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/staging/dune-functions.git -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/pdelab/dune-pdelab -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/staging/dune-typetree.git -b releases/2.5 \
&& git clone https://gitlab.dune-project.org/quality/dune-testtools -b master
WORKDIR /opt/dune
RUN MAKE_FLAGS="-j ${PROCNUM}" \
CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release -DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" \
./dune-common/bin/dunecontrol all
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