Commit 6458a0f6 authored by Lukas Riedel's avatar Lukas Riedel

Add new job prep:update-dune updating the DUNE environment image

parent 38b3b22e
......@@ -9,11 +9,14 @@ variables:
MAKE_FLAGS:
-j 4
DIND_PROCNUM: 3
DOCKER_LOGIN:
docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PW
before_script:
- cd /opt/dune
stages:
- prep
- setup
- build
- test
......@@ -29,11 +32,26 @@ setup:dune-env:
variables:
DOCKER_DRIVER: overlay2
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PW index.docker.io
- $DOCKER_LOGIN
script:
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env -t dorie/dune-env:2.5.1 .
- docker push dorie/dune-env:2.5.1
prep:update-dune:
stage: prep
tags:
- dind
image: docker:stable
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
before_script:
- $DOCKER_LOGIN
script:
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env-update -t dorie/dune-env:2.5.1 .
- docker push dorie/dune-env:2.5.1
build:main:
stage: build
tags:
......@@ -177,7 +195,7 @@ deploy:docker:
variables:
DOCKER_DRIVER: overlay2
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PW index.docker.io
- $DOCKER_LOGIN
script:
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dorie -t dorie/dorie:devel .
- docker push dorie/latest
- docker push dorie/dorie:devel
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 upgrade && apt-get clean
WORKDIR /opt/dune
RUN ./dune-common/bin/dunecontrol update
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
\ No newline at end of file
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