13 Commits
3 changed files with 7 additions and 5 deletions

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
FROM osixia/baseimage FROM osixia/baseimage:0.4.0
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr> MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr>
# From Nick Stenning's work # From Nick Stenning's work
@@ -18,7 +18,7 @@ ENV LDAP_DOMAIN example.com
# RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh # RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# Enable dnsmasq # Enable dnsmasq
RUN /etc/enable-service dnsmasq RUN /sbin/enable-service dnsmasq
# Use baseimage-docker's init system. # Use baseimage-docker's init system.
CMD ["/sbin/my_init"] CMD ["/sbin/my_init"]
+4 -2
View File
@@ -47,7 +47,7 @@ if [ ! -e /etc/ldap/config/docker_bootstrapped ]; then
status "Custom config" status "Custom config"
slapd -h "ldapi:///" -u openldap -g openldap slapd -h "ldapi:///" -u openldap -g openldap
chown -R openldap:openldap /etc/ldap chown -R openldap:openldap /etc/ldap
# TLS # TLS
if [ -e /etc/ldap/ssl/ldap.crt ] && [ -e /etc/ldap/ssl/ldap.key ] && [ -e /etc/ldap/ssl/ca.crt ]; then if [ -e /etc/ldap/ssl/ldap.crt ] && [ -e /etc/ldap/ssl/ldap.key ] && [ -e /etc/ldap/ssl/ca.crt ]; then
@@ -85,4 +85,6 @@ fi
status "starting slapd on default port 389" status "starting slapd on default port 389"
set -x set -x
exec /usr/sbin/slapd -h "ldap:///" -u openldap -g openldap -d -1 #with debug:
#exec /usr/sbin/slapd -h "ldap:///" -u openldap -g openldap -d -1
exec /usr/sbin/slapd -h "ldap:///" -u openldap -g openldap
+1 -1
View File
@@ -6,5 +6,5 @@
res=$(docker.io images | grep -c "$testImage") res=$(docker.io images | grep -c "$testImage")
if [ $res -ne 0 ]; then if [ $res -ne 0 ]; then
#docker.io rmi $testImage docker.io rmi $testImage
fi fi