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>
48 lines
694 B
Docker
48 lines
694 B
Docker
FROM docker.io/library/archlinux:latest
|
|
|
|
ARG CC=gcc
|
|
|
|
# Initialize machine ID
|
|
RUN systemd-machine-id-setup
|
|
|
|
RUN pacman -Syu --noconfirm \
|
|
$CC \
|
|
bash \
|
|
make \
|
|
coreutils \
|
|
git \
|
|
gnutls \
|
|
libaio \
|
|
libcap \
|
|
libnet \
|
|
libnl \
|
|
nftables \
|
|
pkgconfig \
|
|
protobuf-c \
|
|
protobuf \
|
|
python-pip \
|
|
python-protobuf \
|
|
which \
|
|
sudo \
|
|
iptables \
|
|
nftables \
|
|
iproute2 \
|
|
tar \
|
|
bash \
|
|
go \
|
|
python-yaml \
|
|
asciidoctor \
|
|
python-junit-xml \
|
|
python-importlib-metadata \
|
|
libdrm \
|
|
diffutils
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
RUN make mrproper && date && make -j $(nproc) CC="$CC" && date
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
RUN useradd -u 1000 test
|
|
|
|
RUN make -C test/zdtm
|