Commit 348f7d3a authored by Stephan Hilb's avatar Stephan Hilb
Browse files

docker-ubuntu: preliminate minimal image

parent 24085e9a
Pipeline #11534 passed with stage
in 24 minutes and 47 seconds
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
git pkg-config cmake clang gfortran vim
RUN useradd -md /dune dune
USER dune:dune
RUN mkdir /dune/bin /dune/modules /dune/prefix
ENV PATH=/dune/bin:/dune/prefix/bin:/dune/modules/dune-common/bin:$PATH
COPY ./install-module /dune/bin/
COPY ./test-module /dune/bin/
COPY ./docker.opts /dune/modules/
WORKDIR /dune/modules
RUN install-module https://gitlab.dune-project.org/core/dune-common.git
RUN install-module https://gitlab.dune-project.org/core/dune-geometry.git
RUN install-module https://gitlab.dune-project.org/core/dune-localfunctions.git
RUN install-module https://gitlab.dune-project.org/core/dune-grid.git
RUN install-module https://gitlab.dune-project.org/core/dune-istl.git
RUN install-module https://gitlab.dune-project.org/extensions/dune-alugrid.git
RUN install-module https://gitlab.dune-project.org/dune-fem/dune-fem.git
#RUN install-module https://gitlab.dune-project.org/dune-fem/dune-acfem.git
#RUN test-module dune-acfem
# alpine docker image
## Status
- dune-fem: test-balladapt fails
- dune-acfem: doesn't build with gcc6 or clang5, alpine has not yet gcc7 or clang6
CMAKE_FLAGS="
-DCMAKE_BUILD_TYPE=Release\
-DCMAKE_CXX_COMPILER='/usr/bin/clang++' \
-DCMAKE_C_COMPILER='/usr/bin/clang' \
-DCMAKE_CXX_FLAGS='-O3 -Wall -ferror-limit=1 -ftemplate-backtrace-limit=0' \
-DDUNE_GRID_GRIDTYPE_SELECTOR=ON \
"
#!/bin/bash
url=$1
# get module name by stripping git-url
module=${url##*/}; module=${module%%.git}
set -e
git clone --depth 1 $url $module
dunecontrol --opts=docker.opts --only=${module} all
#!/bin/bash
module=$1
set -e
dunecontrol --opts=docker.opts --only=${module} make build_tests
dunecontrol --opts=docker.opts --only=${module} make test
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