From b743c9e1df39c3cd99a0efc35d08d5b1a5a1c8ea Mon Sep 17 00:00:00 2001 From: Jens Wetterich Date: Mon, 13 Apr 2020 16:03:00 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bea0e4d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM gcc:9 + +RUN curl https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.sh -o /tmp/curl-install.sh \ + && chmod u+x /tmp/curl-install.sh \ + && mkdir /usr/bin/cmake \ + && /tmp/curl-install.sh --skip-license --prefix=/usr/bin/cmake \ + && rm /tmp/curl-install.sh \ + && curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \ + && python /tmp/get-pip.py --no-wheel \ + && rm /tmp/get-pip.py \ + && pip install gcovr +ENV PATH="/usr/bin/cmake/bin:${PATH}" +RUN curl -Lj0 https://github.com/google/googletest/archive/release-1.10.0.zip -o /tmp/gtest.zip \ + && cd /tmp \ + && unzip gtest.zip \ + && cd googletest-release-1.10.0 \ + && cmake -DBUILD_SHARED_LIBS=ON . \ + && make \ + && make install \ + && cd .. \ + && rm gtest.zip \ + && rm -rf googletest-release-1.10.0 \ +