CI: For LDAP tests, switch to using OpenLDAP slapd running on

CentOS Stream 9.

Github: closes #450


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joe Orton
2024-05-30 14:48:21 +00:00
parent 0af4059050
commit 84ecd2f2b9
3 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,5 @@
FROM quay.io/centos/centos:stream9
RUN dnf install -y epel-release && \
dnf install -y openldap openldap-clients openldap-servers openldap-devel && \
dnf -y clean all --enablerepo='*'
CMD /usr/sbin/slapd -u ldap -d1 '-h ldap:// ldapi:///'

View File

@ -1,5 +0,0 @@
FROM quay.io/centos/centos:7
RUN yum install -y yum-utils && \
yum install -y openldap openldap-clients openldap-servers openldap-devel && \
yum -y clean all --enablerepo='*'
CMD /usr/sbin/slapd -u ldap -d1 '-h ldap:// ldapi:///'

View File

@ -97,7 +97,7 @@ fi
# For LDAP testing, run slapd listening on port 8389 and populate the
# directory as described in t/modules/ldap.t in the test framework:
if test -v TEST_LDAP -a -x test/perl-framework/scripts/ldap-init.sh; then
docker build -t httpd_ldap -f test/travis_Dockerfile_slapd.centos7 test/
docker build -t httpd_ldap -f test/travis_Dockerfile_slapd.centos test/
pushd test/perl-framework
./scripts/ldap-init.sh
popd