Added CodeChecker.

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2023-06-03 00:16:15 +08:00
parent adbe503f0a
commit 726e25180d
Signed by: imi415
GPG Key ID: DB982239424FF8AC
1 changed files with 8 additions and 5 deletions

View File

@ -1,17 +1,20 @@
FROM ubuntu:jammy
# syntax=docker/dockerfile:1-labs
FROM python:3-bullseye
ENV TOOLCHAIN_VERSION="12.2.mpacbti-rel1"
ADD https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/${TOOLCHAIN_VERSION}/binrel/arm-gnu-toolchain-${TOOLCHAIN_VERSION}-x86_64-arm-none-eabi.tar.xz /opt/toolchain.tar.xz
ADD --checksum=sha256:17455a06c816031cc2c66243c117cba48463cd6a3a3fdfac7275b4e9c40eb314 \
https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/${TOOLCHAIN_VERSION}/binrel/arm-gnu-toolchain-${TOOLCHAIN_VERSION}-x86_64-arm-none-eabi.tar.xz \
/opt/toolchain.tar.xz
RUN sed -ie 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
RUN sed -ie 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake xz-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake xz-utils clang cppcheck clang-tidy
RUN tar -xf /opt/toolchain.tar.xz --strip-components 1 -C /usr/local
RUN rm /opt/toolchain.tar.xz
RUN pip install codechecker