Commit 453bf812 authored by jannick.wolters's avatar jannick.wolters
Browse files

updated Dockerfile; updated gitlab runner command to avoid mpi issues

parent f3ce970e
Pipeline #88826 passed with stages
in 17 minutes and 52 seconds
......@@ -6,14 +6,10 @@ stages:
build:
stage: build
artifacts:
expire_in: 1 day
paths:
- code/bin/
script:
- git submodule update --init --recursive
- cd code/build/debug
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=True -DCMAKE_EXPORT_COMPILE_COMMANDS=True ../../
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=True ../../
- ninja
only:
refs:
......@@ -29,10 +25,13 @@ build:
unit_tests:
stage: unit_tests
dependencies:
- build
script:
- ./code/bin/unit_tests
- git submodule update --init --recursive
- cd code/build/release
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=True ../../
- ninja
- cd ../../bin
- ./unit_tests
only:
refs:
- master
......
FROM ubuntu:18.04
FROM ubuntu:20.04
ENV CXX=/usr/bin/g++ \
CC=/usr/bin/gcc \
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
RUN apt-get update \
&& 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 \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq \
gcc \
g++ \
libopenmpi-dev \
openmpi-bin \
libblas-dev \
liblapack-dev \
git \
make \
ninja-build \
cmake \
wget \
ssh \
libssl-dev \
libxt-dev \
libgl1-mesa-dev \
libgsl-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 \
&& apt-get clean && \
&& apt-get autoremove --purge && \
&& apt-get clean \
&& apt-get autoremove --purge \
&& 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 \
&& cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION=OFF -DBUILD_TESTING=OFF ../ \
&& ninja \
&& ninja install > /dev/null \
&& cd - \
&& rm -rf VTK-*
......
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