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
432 B
16 lines
432 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,+X /var/lib/ldap \
|
|
&& chmod -R ugo+r,+X /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/" ]
|
|
|