Skip to content

Commit b08d48f

Browse files
fix: install libxml2 and libxslt for saml-auth plugin (#627)
1 parent 6d6211d commit b08d48f

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/apisix_push_docker_hub.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ jobs:
3434
3535
- name: Test route
3636
run: |
37-
grep -C 3 '\[error\]' compose/apisix_log/error.log && exit 1
37+
# error.log is symlinked to stderr, so check the container logs
38+
if docker logs compose-apisix-1 2>&1 | grep -C 3 '\[error\]'; then
39+
echo "found errors in apisix startup logs"
40+
exit 1
41+
fi
3842
3943
curl http://127.0.0.1:9180/apisix/admin/routes/1 \
4044
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '

debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN set -ex; \
3535
;; \
3636
esac; \
3737
apt update \
38-
&& apt install -y apisix=${APISIX_VERSION}-0 \
38+
&& apt install -y apisix=${APISIX_VERSION}-0 libxml2 libxslt1.1 \
3939
&& apt-get purge -y --auto-remove \
4040
&& rm -f /usr/local/openresty/bin/etcdctl \
4141
&& openresty -V \

redhat/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ COPY ./yum.repos.d/apache-apisix.repo /etc/yum.repos.d/apache-apisix.repo
2323
COPY ./yum.repos.d/openresty.repo /etc/yum.repos.d/openresty.repo
2424

2525
RUN yum update -y \
26-
&& yum install -y apisix-${APISIX_VERSION} wget\
26+
&& yum install -y apisix-${APISIX_VERSION} wget libxml2 libxslt\
2727
&& yum clean all \
2828
&& sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs
2929

ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN set -ex; \
3535
;; \
3636
esac; \
3737
apt update \
38-
&& apt install -y apisix=${APISIX_VERSION}-0 \
38+
&& apt install -y apisix=${APISIX_VERSION}-0 libxml2 libxslt1.1 \
3939
&& apt-get purge -y --auto-remove \
4040
&& rm -f /usr/local/openresty/bin/etcdctl \
4141
&& openresty -V \

0 commit comments

Comments
 (0)