Skip to content

Commit ffac3d6

Browse files
adrianreberavagin
authored andcommitted
ci: add CentOS 8 based CI run
Our CentOS based CI run is based on CentOS 7. CentOS 8 exists already for some time and CentOS 7 will probably go end of life at some point. This adds a CentOS 8 based CI run to be prepared for the time CentOS 7 goes away. Signed-off-by: Adrian Reber <[email protected]>
1 parent 4074042 commit ffac3d6

File tree

4 files changed

+59
-3
lines changed

4 files changed

+59
-3
lines changed

.github/workflows/centos-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-20.04
88
strategy:
99
matrix:
10-
target: [centos7]
10+
target: [centos7, centos8]
1111

1212
steps:
1313
- uses: actions/checkout@v2

scripts/build/Dockerfile.centos8

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM registry.centos.org/centos/centos:8
2+
3+
ARG CC=gcc
4+
ARG ENV1=FOOBAR
5+
6+
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf-plugins-core
7+
RUN yum config-manager --set-enabled PowerTools
8+
RUN yum install -y --allowerasing \
9+
asciidoc \
10+
ccache \
11+
coreutils \
12+
chkconfig \
13+
diffutils \
14+
findutils \
15+
gcc \
16+
git \
17+
gnutls-devel \
18+
iproute \
19+
iptables \
20+
libaio-devel \
21+
libasan \
22+
libcap-devel \
23+
libnet-devel \
24+
libnl3-devel \
25+
libselinux-devel \
26+
make \
27+
procps-ng \
28+
protobuf-c-devel \
29+
protobuf-devel \
30+
python3-devel \
31+
python3-flake8 \
32+
python3-PyYAML \
33+
python3-future \
34+
python3-protobuf \
35+
python3-pip \
36+
sudo \
37+
tar \
38+
which \
39+
xmlto
40+
41+
RUN alternatives --set python /usr/bin/python3
42+
ENV PYTHON=python3
43+
44+
COPY . /criu
45+
WORKDIR /criu
46+
47+
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
48+
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
49+
date && make -j $(nproc) CC="$CC" && date && ccache -s
50+
51+
# The rpc test cases are running as user #1000, let's add the user
52+
RUN adduser -u 1000 test
53+
54+
RUN pip3 install junit_xml
55+
56+
RUN make -C test/zdtm -j $(nproc)

scripts/build/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARCHES := x86_64 fedora-asan fedora-rawhide centos7 armv7hf
1+
ARCHES := x86_64 fedora-asan fedora-rawhide centos7 armv7hf centos8
22
TARGETS := $(ARCHES) alpine
33
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
44
CONTAINER_RUNTIME := docker

scripts/ci/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ifdef CLANG
1111
target-suffix = -clang
1212
endif
1313

14-
TARGETS := alpine fedora-rawhide centos7
14+
TARGETS := alpine fedora-rawhide centos7 centos8
1515
ZDTM_OPTIONS :=
1616
UNAME := $(shell uname -m)
1717

0 commit comments

Comments
 (0)