]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
CI: Try to cope with CentOS Stream containers being out-of-sync with
authorJoe Orton <jorton@apache.org>
Fri, 31 Jan 2025 14:28:57 +0000 (14:28 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 31 Jan 2025 14:28:57 +0000 (14:28 +0000)
the yum repos when building the slapd container. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923479 13f79535-47bb-0310-9956-ffa450edef68

test/travis_Dockerfile_slapd.centos

index 713e5de50732b36c732210068a6cbdfd999ed0dc..921927733db1085406682b66e7bbd14856709898 100644 (file)
@@ -1,5 +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='*'
+RUN rpm -q openldap-servers || (dnf install --refresh -y epel-release && \
+    dnf install --nobest -y openldap-clients openldap-servers openldap-devel && \
+    dnf -y clean all --enablerepo='*')
 CMD /usr/sbin/slapd -u ldap -d1 '-h ldap:// ldapi:///'