diff --git a/.github/workflows/apisix_push_docker_hub.yaml b/.github/workflows/apisix_push_docker_hub.yaml index 198bea67..2f526291 100644 --- a/.github/workflows/apisix_push_docker_hub.yaml +++ b/.github/workflows/apisix_push_docker_hub.yaml @@ -34,7 +34,11 @@ jobs: - name: Test route run: | - grep -C 3 '\[error\]' compose/apisix_log/error.log && exit 1 + # error.log is symlinked to stderr, so check the container logs + if docker logs compose-apisix-1 2>&1 | grep -C 3 '\[error\]'; then + echo "found errors in apisix startup logs" + exit 1 + fi curl http://127.0.0.1:9180/apisix/admin/routes/1 \ -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' diff --git a/debian/Dockerfile b/debian/Dockerfile index 8bb2b1be..01305d26 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -35,7 +35,7 @@ RUN set -ex; \ ;; \ esac; \ apt update \ - && apt install -y apisix=${APISIX_VERSION}-0 \ + && apt install -y apisix=${APISIX_VERSION}-0 libxml2 libxslt1.1 \ && apt-get purge -y --auto-remove \ && rm -f /usr/local/openresty/bin/etcdctl \ && openresty -V \ diff --git a/redhat/Dockerfile b/redhat/Dockerfile index 0af3bd82..930007e8 100644 --- a/redhat/Dockerfile +++ b/redhat/Dockerfile @@ -23,7 +23,7 @@ COPY ./yum.repos.d/apache-apisix.repo /etc/yum.repos.d/apache-apisix.repo COPY ./yum.repos.d/openresty.repo /etc/yum.repos.d/openresty.repo RUN yum update -y \ - && yum install -y apisix-${APISIX_VERSION} wget\ + && yum install -y apisix-${APISIX_VERSION} wget libxml2 libxslt\ && yum clean all \ && sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index af3854f5..3d058321 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -35,7 +35,7 @@ RUN set -ex; \ ;; \ esac; \ apt update \ - && apt install -y apisix=${APISIX_VERSION}-0 \ + && apt install -y apisix=${APISIX_VERSION}-0 libxml2 libxslt1.1 \ && apt-get purge -y --auto-remove \ && rm -f /usr/local/openresty/bin/etcdctl \ && openresty -V \