Browse Source

fix openldap Dockerfile

pull/1/head
Nicolas Massé 8 years ago
parent
commit
2d93beb420
  1. 13
      openldap/Dockerfile

13
openldap/Dockerfile

@ -1,11 +1,16 @@
FROM centos:7 FROM centos:7
RUN yum update -y && yum -y install openldap-servers openldap-clients && yum clean all && chgrp -R root /var/lib/ldap && chmod -R g+rw,o= /var/lib/ldap 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 \
&& chgrp -R root /var/lib/ldap \
&& chmod -R g+rw,o= /var/lib/ldap
VOLUME /var/lib/ldap VOLUME /var/lib/ldap
WORKDIR /var/lib/ldap WORKDIR /var/lib/ldap
EXPOSE 389 636 EXPOSE 389
ENTRYPOINT [ "/usr/sbin/slapd" ] ENTRYPOINT [ "/usr/sbin/slapd" ]
CMD [ "-4" ] CMD [ "-d", "256", "-h", "ldap:///" ]

Loading…
Cancel
Save