2015-06-02 22:10:21 +00:00
|
|
|
FROM debian:jessie
|
2015-02-18 15:23:34 +00:00
|
|
|
|
2015-09-26 15:24:56 +00:00
|
|
|
MAINTAINER Christian Luginbühl <dinkel@pimprecords.com>
|
2015-02-18 15:23:34 +00:00
|
|
|
|
2015-06-02 22:10:21 +00:00
|
|
|
ENV OPENLDAP_VERSION 2.4.40
|
2015-02-18 15:23:34 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
2015-06-09 14:55:34 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
2015-06-09 15:00:16 +00:00
|
|
|
slapd=${OPENLDAP_VERSION}* && \
|
2015-02-18 15:23:34 +00:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-03-11 22:35:56 +00:00
|
|
|
RUN mv /etc/ldap /etc/ldap.dist
|
|
|
|
|
2015-02-18 15:23:34 +00:00
|
|
|
EXPOSE 389
|
|
|
|
|
2015-03-11 22:35:56 +00:00
|
|
|
VOLUME ["/etc/ldap", "/var/lib/ldap"]
|
2015-02-18 15:23:34 +00:00
|
|
|
|
2015-03-16 22:22:40 +00:00
|
|
|
COPY modules/ /etc/ldap.dist/modules
|
|
|
|
|
2015-02-18 15:23:34 +00:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
2015-03-20 23:59:45 +00:00
|
|
|
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|