Commit 586e2810 authored by Jannick Wolters's avatar Jannick Wolters
Browse files

changed to custom docker image for the gitlab runner (see Dockerfile)

parent 14b50899
image: conanio/gcc9
image: rtsn:latest
stages:
- build
......@@ -10,8 +10,6 @@ build:
paths:
- code/bin
script:
- sudo apt-get update
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libopenmpi-dev libblas-dev liblapack-dev git libvtk7-dev ninja-build
- git submodule update --init --recursive
- cd code/build/debug
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=True -DCMAKE_EXPORT_COMPILE_COMMANDS=True ../../
......
FROM ubuntu:18.04
ENV CXX=/usr/bin/g++ \
CC=/usr/bin/gcc
RUN apt-get update -qq \
&& apt-get install -qq software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends \
gcc-9 \
g++-9 \
libopenmpi-dev \
libblas-dev \
liblapack-dev \
git \
make \
ninja-build \
wget \
libssl-dev \
libxt-dev \
libgl1-mesa-dev \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100 \
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-9 100 \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 \
&& update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-9 100 \
&& rm -rf /var/lib/apt/lists/*
RUN wget --no-check-certificate --quiet https://cmake.org/files/v3.16/cmake-3.16.4.tar.gz \
&& tar xzf cmake-3.16.4.tar.gz \
&& cd cmake-3.16.4 \
&& ./bootstrap > /dev/null \
&& make -s -j${nproc} \
&& make -s install > /dev/null \
&& cd - \
&& rm -rf cmake-*
RUN wget --no-check-certificate --quiet https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz \
&& tar xzf VTK-8.2.0.tar.gz \
&& mkdir VTK-8.2.0/build \
&& cd VTK-8.2.0/build \
&& cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION=OFF -DBUILD_TESTING=OFF ../ \
&& make -s -j${nproc} \
&& make -s install > /dev/null \
&& cd - \
&& rm -rf VTK-*
WORKDIR /home
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