mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
Ruff (https://github.com/astral-sh/ruff) is a Python linter written in Rust, designed to replace Flake8. It is significantly faster and actively maintained. In addition to replacing flake8 with ruff, this patch also creates separate makefile targets for ruff, shellcheck and codespell, so that they can be tested independently. RUFF_FLAGS can be used to specify options such as '--fix'. Example: make lint make ruff RUFF_FLAGS=--fix Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
53 lines
773 B
Docker
53 lines
773 B
Docker
FROM alpine
|
|
ARG CC=gcc
|
|
|
|
RUN apk update && apk add \
|
|
$CC \
|
|
bash \
|
|
build-base \
|
|
coreutils \
|
|
procps \
|
|
git \
|
|
gnutls-dev \
|
|
libaio-dev \
|
|
libcap-dev \
|
|
libnet-dev \
|
|
libnl3-dev \
|
|
nftables \
|
|
nftables-dev \
|
|
pkgconfig \
|
|
protobuf-c-dev \
|
|
protobuf-dev \
|
|
py3-pip \
|
|
py3-protobuf \
|
|
python3 \
|
|
sudo \
|
|
libcap-utils \
|
|
libdrm-dev \
|
|
util-linux
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
RUN make mrproper && date && make -j $(nproc) CC="$CC" && date
|
|
|
|
RUN apk add \
|
|
ip6tables \
|
|
iptables \
|
|
iptables-legacy \
|
|
nftables \
|
|
iproute2 \
|
|
tar \
|
|
bash \
|
|
go \
|
|
e2fsprogs \
|
|
py-yaml \
|
|
py3-importlib-metadata \
|
|
asciidoctor
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
RUN adduser -u 1000 -D test
|
|
|
|
RUN pip3 install junit_xml --break-system-packages
|
|
|
|
RUN make -C test/zdtm
|