This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
78 lines (65 loc) · 1.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM ubuntu:22.04
# Prevent tzdata apt-get installation from asking for input.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
autoconf \
automake \
clang-format \
cloc \
cmake \
curl \
doxygen \
flex \
g++ \
gcc \
git \
graphviz \
lcov \
libreadline-dev \
libsasl2-dev \
libssl-dev \
libtool \
mpich \
ninja-build \
perl \
python3-pip \
qtbase5-dev \
tzdata \
valgrind \
vim-common \
&& \
apt-get -y autoremove && \
apt-get clean all
# Temporary solution due to CentOS 7's old kernel.
RUN strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
RUN pip3 install conan==1.58.0 coverage==4.4.2 flake8==3.5.0 gcovr==4.1 'sphinx<=5' breathe && \
rm -rf /root/.cache/pip/*
ENV CONAN_USER_HOME=/conan
RUN mkdir $CONAN_USER_HOME && \
conan
RUN git clone http://github.com/ess-dmsc/conan-configuration.git && \
cd conan-configuration && \
git checkout 5b1a947b11852a2022e8b81755a731ca4b25cdcd && \
cd .. && \
conan config install conan-configuration
COPY files/default_profile $CONAN_USER_HOME/.conan/profiles/default
RUN cd /tmp && \
curl -o cppcheck.tar.gz -L https://github.com/danmar/cppcheck/archive/2.7.tar.gz && \
tar xf cppcheck.tar.gz && \
cd cppcheck-2.7 && \
mkdir build && \
cd build && \
sed -i "s|LIST(GET VERSION_PARTS 2 VERSION_PATCH)| |g" ../cmake/versions.cmake && \
cmake .. && \
make -j8 && make install && \
cd ../.. && \
rm -rf cppcheck-2.7 && \
rm -rf cppcheck.tar.gz
RUN adduser --disabled-password --gecos "" jenkins
RUN chown -R jenkins $CONAN_USER_HOME/.conan
RUN conan config set general.revisions_enabled=True
USER jenkins
WORKDIR /home/jenkins
RUN python3 -m pip install --user black codecov