2018-06-19 14:30:10 +02:00
|
|
|
# Fork of https://github.com/dinkel/docker-openldap
|
|
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
FROM debian:jessie
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2019-05-13 11:51:16 +03:00
|
|
|
LABEL maintainer="Grafana team <hello@grafana.com>"
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
ENV OPENLDAP_VERSION 2.4.40
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
2018-07-03 12:57:48 +02:00
|
|
|
slapd=${OPENLDAP_VERSION}* \
|
|
|
|
|
ldap-utils && \
|
2015-07-13 14:23:59 +02:00
|
|
|
apt-get clean && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
RUN mv /etc/ldap /etc/ldap.dist
|
2015-01-11 12:11:49 +01:00
|
|
|
|
|
|
|
|
EXPOSE 389
|
|
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
VOLUME ["/etc/ldap", "/var/lib/ldap"]
|
|
|
|
|
|
2019-07-01 15:09:04 +03:00
|
|
|
COPY ldap.conf /etc/ldap.dist/ldap.conf
|
|
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
COPY modules/ /etc/ldap.dist/modules
|
2018-03-29 22:21:41 +02:00
|
|
|
COPY prepopulate/ /etc/ldap.dist/prepopulate
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2018-07-03 12:57:48 +02:00
|
|
|
COPY prepopulate.sh /prepopulate.sh
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2015-01-11 12:11:49 +01:00
|
|
|
|
2015-07-13 14:23:59 +02:00
|
|
|
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|