forked from filipdutescu/modern-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (44 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:18.04
RUN echo "Updating Ubuntu"
RUN apt-get update && apt-get upgrade -y
RUN echo "Installing dependencies..."
RUN apt install -y \
ccache \
clang \
clang-format \
clang-tidy \
cppcheck \
curl \
doxygen \
gcc \
git \
graphviz \
make \
ninja-build \
python3 \
python3-pip \
tar \
unzip \
vim
RUN echo "Installing dependencies not found in the package repos..."
RUN apt install -y wget tar build-essential libssl-dev && \
wget https://github.com/Kitware/CMake/releases/download/v3.15.0/cmake-3.15.0.tar.gz && \
tar -zxvf cmake-3.15.0.tar.gz && \
cd cmake-3.15.0 && \
./bootstrap && \
make && \
make install
RUN pip3 install conan
RUN git clone https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
cmake -Bbuild -H. -DBUILD_TESTING=OFF && \
cmake --build build/ --target install
# Disabled pthread support for GTest due to linking errors
RUN git clone https://github.com/google/googletest.git --branch release-1.10.0 && \
cd googletest && \
cmake -Bbuild -Dgtest_disable_pthreads=1 && \
cmake --build build --config Release && \
cmake --build build --target install --config Release
RUN git clone https://github.com/microsoft/vcpkg -b 2020.06 && \
cd vcpkg && \
./bootstrap-vcpkg.sh -disableMetrics -useSystemBinaries