-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 1.07 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
FROM ubuntu:20.04
ENV CC_LOGGER_GCC_LIKE "gcc:g++:clang:cc1:cc1plus"
ENV DEBIAN_FRONTEND noninteractive
RUN sed /etc/apt/sources.list -e 's|http://.*ubuntu/|http://mirror.yandex.ru/ubuntu/|' -i
RUN apt update && apt install -y wget gnupg2 curl lsb-core g++ make autogen autoconf libtool libz-dev libldap2-dev libkrb5-dev python3-pip unzip cmake cppcheck python3-virtualenv git libtool-bin
RUN wget https://apt.llvm.org/llvm-snapshot.gpg.key
RUN apt-key add llvm-snapshot.gpg.key
RUN echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main' > /etc/apt/sources.list.d/clang.list
RUN apt update
RUN apt install -y clang-tidy-19
RUN curl -o mcli.deb https://dl.min.io/client/mc/release/linux-amd64/archive/mcli_20230216192011.0.0_amd64.deb && dpkg -i mcli.deb && rm mcli.deb
RUN virtualenv /codechecker
RUN /codechecker/bin/python3 -m pip install codechecker==6.24.4
RUN cd /usr/bin && \
rm -f clang clang-tidy && \
ln -s clang-18 clang && \
ln -s clang-tidy-18 clang-tidy && \
ln -s /codechecker/bin/CodeChecker . && \
ln -s /codechecker/bin/report-converter .