diff --git a/src/apisix/ci/Dockerfile.apisix-test-busted b/src/apisix/ci/Dockerfile.apisix-test-busted index fd207c9..b800c9b 100644 --- a/src/apisix/ci/Dockerfile.apisix-test-busted +++ b/src/apisix/ci/Dockerfile.apisix-test-busted @@ -3,7 +3,7 @@ FROM apache/apisix:$APISIX_VERSION-centos # in github action, change the source of yum is not ok # note: uncomment below if it's slow to build image -# RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \ +# RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \ # curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo && \ # yum clean all @@ -11,6 +11,8 @@ RUN yum install -y sudo make gcc curl wget unzip git valgrind ARG APISIX_VERSION RUN curl https://raw.githubusercontent.com/apache/apisix/${APISIX_VERSION}/utils/linux-install-luarocks.sh | bash +# lock the version of luasystem, otherwise the busted won't be installed success +RUN luarocks install https://luarocks.org/manifests/lunarmodules/luasystem-0.2.1-0.rockspec RUN luarocks install https://github.com/lunarmodules/busted/releases/download/v2.1.1/busted-2.1.1-1.rockspec COPY ci/requirements-dev-0.rockspec /