10 lines
556 B
Plaintext
10 lines
556 B
Plaintext
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:///'
|