Initial commit

This commit is contained in:
paul 2017-09-09 17:54:45 +02:00 committed by Hive
commit 70ffd9b09c
8 changed files with 374 additions and 0 deletions

27
Dockerfile Normal file
View file

@ -0,0 +1,27 @@
FROM debian:stretch
EXPOSE 389
ENV DEBIAN_FRONTEND noninteractive \
CONFDIR /etc/ldap/slapd.d \
DATADIR /var/lib/ldap
# add our users and groups first to ensure their IDs get assigned consitently
RUN groupadd -r -g 500 openldap && useradd -r -u 500 -g openldap openldap
RUN \
apt-get update && \
apt-get install --yes --no-install-recommends \
slapd \
ldap-utils \
ca-certificates && \
# remove the default config, since the entrypoint
# will populate it by hand.
rm -rf /etc/ldap/slapd.d && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY entrypoint.sh /entrypoint.sh
COPY fixtures/ /usr/share/slapd/fixtures/
ENTRYPOINT ["/entrypoint.sh"]