2015-02-18 15:23:34 +00:00
|
|
|
FROM debian:wheezy
|
|
|
|
|
|
|
|
MAINTAINER Christian Luginbühl <dinke@pimprecords.com>
|
|
|
|
|
|
|
|
ENV OPENLDAP_VERSION 2.4.31
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2015-02-18 19:43:34 +00:00
|
|
|
ldap-utils=${OPENLDAP_VERSION}* \
|
2015-02-18 15:23:34 +00:00
|
|
|
slapd=${OPENLDAP_VERSION}* \
|
2015-02-18 19:43:34 +00:00
|
|
|
vim && \
|
2015-02-18 15:23:34 +00:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
EXPOSE 389
|
|
|
|
|
2015-02-18 20:28:26 +00:00
|
|
|
VOLUME ["/var/lib/ldap", "/etc/ldap"]
|
2015-02-18 15:23:34 +00:00
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
CMD ["slapd", "-d", "32768"]
|