Skip to content

Commit 2f0e909

Browse files
committed
use light-baseimage:0.1.2 and fixes #19
1 parent 57ea7fb commit 2f0e909

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.0.3
4+
- Use light-baseimage:0.1.2
5+
- Fixes :
6+
- Re-running container with volumes won't start #19
7+
38
## 1.0.2
49

510
- Add TLS environment variable :

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/openldap
2-
VERSION = 1.0.2
2+
VERSION = 1.0.3
33

44
.PHONY: all build test tag_latest release
55

image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/light-baseimage:0.1.1
1+
FROM osixia/light-baseimage:0.1.2
22
MAINTAINER Bertrand Gouny <[email protected]>
33

44
# Use baseimage's init system.
@@ -26,7 +26,7 @@ RUN /container/tool/install-service \
2626
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2727

2828
# Add default env variables
29-
ADD env.yaml /etc/env.yaml
29+
ADD env.yaml /container/environment/env.yaml
3030

3131
# Set OpenLDAP data and config directories in a data volume
3232
VOLUME ["/var/lib/ldap", "/etc/ldap/slapd.d"]

image/env.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ LDAP_REPLICATION: false
3030
# if you want to add replication to an existing ldap
3131
# adapt LDAP_REPLICATION_CONFIG_SYNCPROV and LDAP_REPLICATION_HDB_SYNCPROV to your configuration
3232
# avoid using $LDAP_BASE_DN, $LDAP_ADMIN_PASSWORD and $LDAP_CONFIG_PASSWORD variables
33-
LDAP_REPLICATION_CONFIG_SYNCPROV: binddn="cn=admin,cn=config" bindmethod=simple credentials=$LDAP_CONFIG_PASSWORD searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5" timeout=1 starttls=critical
34-
LDAP_REPLICATION_HDB_SYNCPROV: binddn="cn=admin,$LDAP_BASE_DN" bindmethod=simple credentials=$LDAP_ADMIN_PASSWORD searchbase="$LDAP_BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="5 5 300 5" timeout=1 starttls=critical
33+
LDAP_REPLICATION_CONFIG_SYNCPROV: binddn="cn=admin,cn=config" bindmethod=simple credentials=$LDAP_CONFIG_PASSWORD searchbase="cn=config" type=refreshAndPersist retry="60 +" timeout=1 starttls=critical
34+
LDAP_REPLICATION_HDB_SYNCPROV: binddn="cn=admin,$LDAP_BASE_DN" bindmethod=simple credentials=$LDAP_ADMIN_PASSWORD searchbase="$LDAP_BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="60 +" timeout=1 starttls=critical
3535
LDAP_REPLICATION_HOSTS:
3636
- ldap://ldap.example.org # The order must be the same on all ldap servers
3737
- ldap://ldap2.example.org

image/service/slapd/container-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ EOF
104104

105105
# start OpenLDAP
106106
echo "Starting openldap..."
107-
slapd -h "ldap://localhost ldapi:///" -u openldap -g openldap
107+
slapd -h "ldap://$HOSTNAME ldap://localhost ldapi:///" -u openldap -g openldap
108108
echo "[ok]"
109109

110110
# set bootstrap config part 2

0 commit comments

Comments
 (0)