1234567891011121314151617181920212223242526272829303132 |
- FROM alpine:latest
- # The setup follows the OpenLDAP admin guide on
- # http://www.openldap.org/doc/admin24/guide.html
- # Define env variables
- ENV DOMAIN "example.com"
- ENV ORGANIZATION "Example Org."
- ENV SUFFIX "dc=example,dc=org"
- ENV DEBUG 1
- ENV USER ldap
- ENV GROUP ldap
- # Install OpenLDAP with MDB backend
- # openldap-clients is not really required, can be removed after evaluation.
- RUN apk add --update --no-cache \
- gettext \
- pwgen \
- openldap \
- openldap-clients \
- openldap-back-mdb
- RUN mkdir /run/openldap && \
- chown ${USER}:${GROUP} /run/openldap
- COPY ./entrypoint.sh /entrypoint.sh
- CMD /entrypoint.sh
- EXPOSE 389
- VOLUME /etc/openldap/slapd.d /var/backups /var/restore /var/ldifs /scripts /var/lib/openldap
|