Commit e141b7b1 authored by Timo Koch's avatar Timo Koch
Browse files

Add test image for dumux-next

parent 75d12c2b
# A latent buildbot worker with ubuntu
# for testing merge requests for dumux-lecture
# the core modules / dune dependencies are release 2.5
FROM ubuntu:xenial
MAINTAINER timokoch <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 \
libffi-dev \
git \
pkg-config \
wget \
build-essential \
clang-3.8 \
gfortran \
cmake \
mpi-default-dev \
mpi-default-bin \
libsuitesparse-dev \
libmetis-dev \
libsuperlu-dev \
libscotchparmetis-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# create a buildbot user
RUN useradd --create-home --home-dir /data/ buildbot
# create system-wide symlink to dunecontrol for convenience
RUN ln -s /data/src/dune-common/bin/dunecontrol /usr/bin/dunecontrol
# install and set up a virtualenv
RUN pip install virtualenv six
# switch to buildbot user
USER buildbot
RUN virtualenv /data/buildbot
WORKDIR /data/buildbot
# install buildbot master using pip in a virtual env
RUN ./bin/pip install --upgrade pip six
RUN ./bin/pip install 'buildbot-worker==0.9.0b9'
# The files in worker get configured by environmental variables at runtime
# Build this image in the same folder as the worker folder
ADD worker /data/buildbot/worker
ADD opts /data/opts
USER root
RUN chown -R buildbot:buildbot /data/buildbot/worker && \
chown -R buildbot:buildbot /data/opts
USER buildbot
# create source directory
RUN mkdir -p /data/src
WORKDIR /data/src/
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-foamgrid.git && \
git clone -b releases/2.5 https://gitlab.dune-project.org/extensions/dune-alugrid.git && \
git clone -b next https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git && \
./dumux/bin/installexternal.sh gstat
# start worker
WORKDIR /data/buildbot/
CMD ["./bin/buildbot-worker", "start", "--nodaemon", "worker"]
......@@ -4,6 +4,7 @@ docker build -t timokoch/bb-dumux-master-pdelab:latest -f bb-dumux-master-pdelab
docker build -t timokoch/bb-dumux-release-pdelab:latest -f bb-dumux-release-pdelab/Dockerfile .
docker build -t timokoch/bb-dumux-master:latest -f bb-dumux-master/Dockerfile .
docker build -t timokoch/bb-dumux-release:latest -f bb-dumux-release/Dockerfile .
docker build -t timokoch/bb-dumux-next:latest -f bb-dumux-next/Dockerfile .
docker build -t timokoch/bb-lecture-master:latest -f bb-lecture-master/Dockerfile .
docker build -t timokoch/bb-lecture-release:latest -f bb-lecture-release/Dockerfile .
......@@ -11,6 +12,7 @@ docker push timokoch/bb-dumux-master-pdelab:latest
docker push timokoch/bb-dumux-release-pdelab:latest
docker push timokoch/bb-dumux-master:latest
docker push timokoch/bb-dumux-release:latest
docker push timokoch/bb-dumux-next:latest
docker push timokoch/bb-lecture-master:latest
docker push timokoch/bb-lecture-release:latest
......@@ -18,5 +20,6 @@ docker rmi timokoch/bb-dumux-master-pdelab:latest
docker rmi timokoch/bb-dumux-release-pdelab:latest
docker rmi timokoch/bb-dumux-master:latest
docker rmi timokoch/bb-dumux-release:latest
docker rmi timokoch/bb-dumux-next:latest
docker rmi timokoch/bb-lecture-master:latest
docker rmi timokoch/bb-lecture-release:latest
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