dorie.dockerfile 1.11 KB
Newer Older
1
ARG DUNE_ENV_IMAGE=dorie/dune-env:2.6
2
FROM $DUNE_ENV_IMAGE
3 4 5
LABEL maintainer="lriedel@iup.uni-heidelberg.de"
# number of cores for parallel builds
ARG PROCNUM=1
6 7 8
# Compilers to be used
ARG CC=gcc
ARG CXX=g++
9

10
# build DORiE
11 12
WORKDIR /opt/dune
ADD . /opt/dune/dorie/
13 14
RUN CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" \
    ./dune-common/bin/dunecontrol --only=dorie configure \
15
    && ./dune-common/bin/dunecontrol --only=dorie make -j ${PROCNUM} dorie-rfg dorie \
16
    && ./dune-common/bin/dunecontrol --only=dorie exec \
Lukas Riedel's avatar
Lukas Riedel committed
17
        "rm build-cmake/dune/dorie/model/richards/impl/libdorie-richards.a build-cmake/dune/dorie/model/transport/impl/libdorie-transport.a build-cmake/dune/dorie/model/richards/impl/CMakeFiles/dorie-richards.dir/*.cc.o build-cmake/dune/dorie/model/transport/impl/CMakeFiles/dorie-transport.dir/*.cc.o" 
18 19

# move to working directory
20
WORKDIR /mnt
21 22

# run bash in the virtualenv (this actually creates two bash instances...)
23
ENTRYPOINT ["/opt/dune/dune-common/build-cmake/run-in-dune-env", "/bin/bash"]