12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- FROM alpine
- MAINTAINER Tomi Cvetic <tomi@slurm.ch>
- # The setup follows the OpenLDAP admin guide on
- # http://www.openldap.org/doc/admin24/guide.html
- # Define env variables
- ENV DOMAIN ""
- ENV PASSWORD ""
- ENV DEBUG 1
- ENV SERVER_NAME ""
- # Default env variables
- ENV USER "ldap"
- ENV GROUP "$USER"
- # Install openldap with MDB backend
- RUN apk update --no-cache && apk upgrade --no-cache
- RUN apk add --no-cache \
- pwgen \
- openldap \
- openldap-clients \
- openldap-back-mdb
- RUN mkdir /run/openldap
- RUN chown $USER:$GROUP /run/openldap
- # Add schemas that are not initially in the installation
- ADD samba.schema /etc/openldap/schema/samba.schema
- # Add start script
- ADD start.sh /start.sh
- CMD ["/start.sh"]
- EXPOSE 389
- EXPOSE 636
- VOLUME /etc/ldap
- VOLUME /var/backups
- VOLUME /var/restore
- VOLUME /var/lib/ldap
|