blob: 3cca866a5df900eef0533c426fd2dae64f2ecf99 (
plain)
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
|
FROM ubuntu:22.04
RUN <<EOF
apt-get update
apt-get install -y g++ python3 pip git clang-format
python3 -m pip install pre-commit
EOF
RUN <<EOF
apt-get install -y wget cmake libpcre3-dev
cd /tmp
wget https://github.com/danmar/cppcheck/archive/2.14.0.tar.gz
tar xvf 2.14.0.tar.gz
cd cppcheck-2.14.0
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_GUI=Off \
-DUSE_MATCHCOMPILER=On \
-DHAVE_RULES=On \
..
make install/strip
rm -r /tmp/2.14.0.tar.gz /tmp/cppcheck-2.14.0
apt-get remove -y wget cmake libpcre3-dev
apt-get autoremove -y
apt-get clean
EOF
WORKDIR /diff-dd
COPY ./devel_tools/ci_container/entry.sh /entry.sh
ENTRYPOINT ["/entry.sh"]
|