mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add LDAP config instead sed use * Add container name * Add SizeLimit option to client and to server. Probably useless at this point, but it's better to have it then otherwise
33 lines
751 B
Docker
33 lines
751 B
Docker
# Fork of https://github.com/dinkel/docker-openldap
|
|
|
|
FROM debian:jessie
|
|
|
|
LABEL maintainer="Grafana team <hello@grafana.com>"
|
|
|
|
ENV OPENLDAP_VERSION 2.4.40
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
|
slapd=${OPENLDAP_VERSION}* \
|
|
ldap-utils && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mv /etc/ldap /etc/ldap.dist
|
|
|
|
EXPOSE 389
|
|
|
|
VOLUME ["/etc/ldap", "/var/lib/ldap"]
|
|
|
|
COPY ldap.conf /etc/ldap.dist/ldap.conf
|
|
|
|
COPY modules/ /etc/ldap.dist/modules
|
|
COPY prepopulate/ /etc/ldap.dist/prepopulate
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY prepopulate.sh /prepopulate.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|