2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00
Files
criu/scripts/build/Dockerfile.centos8
Radostin Stoyanov e0b74f558b make: replace flake8 with ruff
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>
2024-09-11 16:02:11 -07:00

51 lines
932 B
Docker

FROM registry.centos.org/centos/centos:8
ARG CC=gcc
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf-plugins-core
RUN yum config-manager --set-enabled powertools
RUN yum install -y --allowerasing \
asciidoc \
coreutils \
chkconfig \
diffutils \
findutils \
gcc \
git \
gnutls-devel \
iproute \
iptables \
libaio-devel \
libasan \
libcap-devel \
libnet-devel \
libnl3-devel \
libselinux-devel \
make \
procps-ng \
protobuf-c-devel \
protobuf-devel \
python3-devel \
python3-PyYAML \
python3-protobuf \
python3-pip \
sudo \
tar \
which \
xmlto
RUN alternatives --set python /usr/bin/python3
ENV PYTHON=python3
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 adduser -u 1000 test
RUN pip3 install junit_xml
RUN make -C test/zdtm -j $(nproc)