summaryrefslogtreecommitdiffstats
path: root/test/travis_Dockerfile_slapd
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2020-06-09 16:50:53 +0200
committerJoe Orton <jorton@apache.org>2020-06-09 16:50:53 +0200
commit3951863427fcf205be1cb73d4c20cddca27bca65 (patch)
tree12c6dc136e9c88dca7dd20e7c5a548b4a79a5b6d /test/travis_Dockerfile_slapd
parentDisable all Travis notifications for forks (hopefully). [skip ci] (diff)
downloadapache2-3951863427fcf205be1cb73d4c20cddca27bca65.tar.xz
apache2-3951863427fcf205be1cb73d4c20cddca27bca65.zip
Add Travis job which runs slapd in a container to allow testing
mod_authnz_ldap, per new test case added in r1878655. * test/travis_Dockerfile_slapd: New dockerfile for running slapd. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/travis_Dockerfile_slapd')
-rw-r--r--test/travis_Dockerfile_slapd9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/travis_Dockerfile_slapd b/test/travis_Dockerfile_slapd
new file mode 100644
index 0000000000..8da818e958
--- /dev/null
+++ b/test/travis_Dockerfile_slapd
@@ -0,0 +1,9 @@
+FROM ubuntu:bionic
+RUN echo slapd slapd/password1 password travis | debconf-set-selections
+RUN echo slapd slapd/password2 password travis | debconf-set-selections
+RUN echo slapd slapd/internal/adminpw password travis | debconf-set-selections
+RUN echo slapd slapd/internal/generated_adminpw password travis | debconf-set-selections
+RUN echo slapd slapd/domain string example.com | debconf-set-selections
+RUN apt-get update && apt-get -y install slapd
+# With -d passed, slapd stays in the foreground
+CMD /usr/sbin/slapd -d1