2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

scripts/build: add a docker file for archlinux

Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
This commit is contained in:
Zeyad Yasser
2021-07-24 11:27:48 +02:00
committed by Andrei Vagin
parent 694eafa1f6
commit 00ca2b519e
4 changed files with 56 additions and 2 deletions

11
.github/workflows/archlinux-test.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Arch Linux Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run Arch Linux Test
run: sudo -E make -C scripts/ci archlinux

View File

@@ -0,0 +1,43 @@
FROM docker.io/library/archlinux:latest
ARG CC=gcc
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 \
flake8 \
asciidoctor \
python-junit-xml \
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

View File

@@ -1,7 +1,7 @@
ARCHES := x86_64 fedora-asan fedora-rawhide centos7 armv7hf centos8
NON_CLANG := armv7-cross aarch64-cross ppc64-cross mips64el-cross
CREATE_DOCKERFILES := $(ARCHES) $(NON_CLANG)
TARGETS := $(ARCHES) alpine
TARGETS := $(ARCHES) alpine archlinux
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
CONTAINER_RUNTIME := docker
CONTAINER_TARGETS := $(TARGETS) $(NON_CLANG)

View File

@@ -11,7 +11,7 @@ ifdef CLANG
target-suffix = -clang
endif
TARGETS := alpine fedora-rawhide centos7 centos8
TARGETS := alpine fedora-rawhide centos7 centos8 archlinux
ZDTM_OPTIONS :=
UNAME := $(shell uname -m)