request help: support centos 7, centos 8 in CI
Issue description
Environment
- apisix version (cmd:
apisix version): - OS:
Github action runs-on only supports a few systems: detail I think it is possible to test on centos7&8 by creating docker container Github action. I am willing to try it when I have time.
Github action OS list:

@idbeta any update?
@idbeta this issue blocked 2.1 release
I will start this thing as soon as possible.
@idbeta please confirm you finish this job in this week. if not, we change this Milestone to 2.2
Sorry, I think I can not finish it this week. @moonming @membphis
Okay, I got it. I have changed the milestone to the 2.2.
Hello @gxthrj @nic-chen, I have two questions, need your help.
- I deployed Centos7 by using a docker container in the CI server, deployed APISIX in it, and executed all cases, some succeeded, like:
/admin/*.t
/config-center-yaml/*.t
/debug/*.t
/router/*.t
/script/*.t
/stream-node/*.t
/stream-plugin/*.t
/utils/*.t
but some cases failed for strange reasons. Do you know the reason?
not a problem at all
- Because some plugins cases need to deploy docker containers (like zookeeper, kafka etc.), I don’t know how to combine Centos7 containers with these containers, can you give some advice?
here is my workflow file:
jobs:
test_apisix:
name: test_apisix
runs-on: ubuntu-latest
container: docker.io/centos:7
steps:
- uses: actions/checkout@v2
- name: intall deps
run: |
yum install -y wget tar gcc automake autoconf libtool make
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install -y curl git luarocks lua-devel which
wget https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz
tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && cd etcd-v3.4.13-linux-amd64 && cp -a etcd etcdctl /usr/bin/
cd ..
etcd &
yum install -y yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
yum install -y openresty-debug
yum install -y openresty
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
- name: run test
run: |
git clone https://github.com/apache/apisix.git
cd apisix
make deps
export PERL5LIB=.:$PERL5LIB
export OPENRESTY_PREFIX="/usr/local/openresty-debug"
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
yum install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl
cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
make test
- I don’t know how to combine Centos7 containers with these containers
--net=host
- Because some plugins cases need to deploy docker containers (like zookeeper, kafka etc.), I don’t know how to combine Centos7 containers with these containers, can you give some advice?
I think service is good for that: https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
t/certs/*.t
t/certs/ has no test file at all.
t/certs/*.t
t/certs/ has no test file at all.
Ok, I was cheated.