Archived
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a1e79690e | ||
|
|
378207027a | ||
|
|
d245c07803 | ||
|
|
6849077ee8 | ||
|
|
35904aa284 | ||
|
|
3ae806c51f | ||
|
|
1e2512c998 | ||
|
|
9531804222 | ||
|
|
faeb220686 | ||
|
|
987d044727 | ||
|
|
ba0b83ad27 | ||
|
|
ccaf1cf6bc | ||
|
|
e303d10740 |
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
FROM osixia/baseimage
|
||||
FROM osixia/baseimage:0.4.0
|
||||
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr>
|
||||
|
||||
# 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
|
||||
|
||||
# Enable dnsmasq
|
||||
RUN /etc/enable-service dnsmasq
|
||||
RUN /sbin/enable-service dnsmasq
|
||||
|
||||
# Use baseimage-docker's init system.
|
||||
CMD ["/sbin/my_init"]
|
||||
|
||||
@@ -47,7 +47,7 @@ if [ ! -e /etc/ldap/config/docker_bootstrapped ]; then
|
||||
status "Custom config"
|
||||
|
||||
slapd -h "ldapi:///" -u openldap -g openldap
|
||||
chown -R openldap:openldap /etc/ldap
|
||||
chown -R openldap:openldap /etc/ldap
|
||||
|
||||
# TLS
|
||||
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"
|
||||
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
|
||||
@@ -6,5 +6,5 @@
|
||||
res=$(docker.io images | grep -c "$testImage")
|
||||
|
||||
if [ $res -ne 0 ]; then
|
||||
#docker.io rmi $testImage
|
||||
docker.io rmi $testImage
|
||||
fi
|
||||
Reference in new issue
Block a user