Collection of Docker Images tailored for OpenShift
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
426 B

FROM centos:7
RUN yum update -y \
&& yum -y install openldap-servers openldap-clients \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG \
&& chmod -R ugo+rw /var/lib/ldap \
&& chmod -R ugo+r /etc/openldap
VOLUME /var/lib/ldap
WORKDIR /var/lib/ldap
EXPOSE 1389
ENTRYPOINT [ "/usr/sbin/slapd" ]
CMD [ "-d", "256", "-h", "ldap://0.0.0.0:1389/" ]