summaryrefslogtreecommitdiffstats
path: root/test/travis_Dockerfile_slapd
blob: e0729e3c2b6c329a62da8c2b3e73214c51628a87 (plain)
1
2
3
4
5
6
7
8
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 ldap-utils
# With -d passed, slapd stays in the foreground
CMD /usr/sbin/slapd -d1 '-h ldap:// ldapi:///'