This commit is contained in:
Bertrand Gouny committed 2014-05-02 17:34:12 +02:00
1 parent 3482221fb2
commit b020cc9cff
4 files changed
+40 -19

No files matched your search

+7 -8
View File
@@ -1,4 +1,4 @@
FROM phusion/baseimage
FROM osixia-baseimage
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr>
# From Nick Stenning's work
@@ -12,11 +12,6 @@ ENV LDAP_DOMAIN example.com
# /!\ To store the data outside the container, mount /var/lib/ldap as a data volume
# add -v /some/host/directory:/var/lib/ldap to the run command
# Set correct environment variables
ENV HOME /root
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
# Disable SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
@@ -26,8 +21,8 @@ CMD ["/sbin/my_init"]
# Resynchronize the package index files from their sources
RUN apt-get -y update
# Install slapd
RUN apt-get install -y slapd
# Install openldap (slapd) and ldap-utils
RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y slapd ldap-utils
# Expose ldap default port
EXPOSE 389
@@ -37,6 +32,10 @@ EXPOSE 389
# add -h my.hostname.com to the run command
RUN mkdir /etc/ldap/ssl
# Add config directory
RUN mkdir /etc/ldap/config
ADD config /etc/ldap/config
# Add slapd deamon
RUN mkdir /etc/service/slapd
ADD slapd.sh /etc/service/slapd/run