Skip to content

Commit f307517

Browse files
authored
fix: require ldap as runtime dependency (#161)
1 parent 09a8ad5 commit f307517

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/package-apisix-deb-ubuntu20.04.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 60
2121
env:
22-
PACKAGE_APISIX_VERSION: 2.9
22+
PACKAGE_APISIX_VERSION: 2.12.0
2323

2424
steps:
2525
- uses: actions/checkout@v2
@@ -30,8 +30,6 @@ jobs:
3030
3131
- name: run apisix packaging
3232
run: |
33-
make package type=deb app=apisix version=2.3 checkout=2.3 image_base=ubuntu image_tag=20.04
34-
make package type=deb app=apisix version=2.2 checkout=v2.2 image_base=ubuntu image_tag=20.04
3533
make package type=deb app=apisix version=master checkout=master image_base=ubuntu image_tag=20.04
3634
make package type=deb app=apisix version=${PACKAGE_APISIX_VERSION} checkout=${PACKAGE_APISIX_VERSION}
3735

package-apisix.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ mkdir /output
55
dist=$(cat /tmp/dist)
66

77
# Determine the dependencies
8+
dep_ldap="openldap-devel"
9+
if [ "$PACKAGE_TYPE" == "deb" ]
10+
then
11+
# the pkg contains the so library could be libldap-2.5 or libldap-2.4-2
12+
dep_ldap="libldap2-dev"
13+
fi
814
dep_pcre="pcre"
915
if [ "$PACKAGE_TYPE" == "deb" ]
1016
then
@@ -43,6 +49,7 @@ fpm -f -s dir -t "$PACKAGE_TYPE" \
4349
-v "$PACKAGE_VERSION" \
4450
--iteration "$ITERATION" \
4551
-d "$OPENRESTY >= $or_version" \
52+
-d "$dep_ldap" \
4653
-d "$dep_pcre" \
4754
-d "$dep_which" \
4855
--description 'Apache APISIX is a distributed gateway for APIs and Microservices, focused on high performance and reliability.' \

test/apisix/Dockerfile.test.apisix.deb.ubuntu20.04

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN /install-common.sh install_etcd
2121

2222
# install apisix
2323
RUN set -x \
24+
&& apt install -y libldap2-dev \
2425
&& dpkg -i /apisix_${APISIX_VERSION}-0~${IMAGE_BASE}${IMAGE_TAG}_amd64.deb
2526

2627
# start etcd and test

0 commit comments

Comments
 (0)