Skip to content

Commit 6d95ab0

Browse files
committed
Merge branch 'hotfix-1.2.4' into stable
2 parents d9aa29b + c04df42 commit 6d95ab0

File tree

12 files changed

+58
-32
lines changed

12 files changed

+58
-32
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.2.4] - 2019-03-14
8+
### Fixed
9+
- Excessive RAM usage on 1.2.2, increased 10x from 1.2.1 #242
10+
- Startup issue with 1.2.3 #283
11+
712
## [1.2.3] - 2019-01-21
8-
+10M docker pulls 🎉🎉🎉 thanks to all contributors 💕
13+
10M+ docker pulls 🎉🎉🎉 thanks to all contributors 💕
914

1015
### Added
1116
- GCE statefulset #241
@@ -229,6 +234,7 @@ Environment variable LDAP_REPLICATION_HDB_SYNCPROV changed to LDAP_REPLICATION_D
229234
## [0.10.0] - 2015-03-03
230235
New version initial release, no changelog before this sorry.
231236

237+
[1.2.4]: https://github.com/osixia/docker-openldap/compare/v1.2.3...v1.2.4
232238
[1.2.3]: https://github.com/osixia/docker-openldap/compare/v1.2.2...v1.2.3
233239
[1.2.2]: https://github.com/osixia/docker-openldap/compare/v1.2.1...v1.2.2
234240
[1.2.1]: https://github.com/osixia/docker-openldap/compare/v1.2.0...v1.2.1

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.2.3
2+
VERSION = 1.2.4
33

44
.PHONY: build build-nocache test tag-latest push push-latest release git-tag-version
55

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![Docker Stars](https://img.shields.io/docker/stars/osixia/openldap.svg)
55
![](https://images.microbadger.com/badges/image/osixia/openldap.svg)
66

7-
Latest release: 1.2.3 - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
7+
Latest release: 1.2.4 - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
88

99
**A docker image to run OpenLDAP.**
1010

@@ -37,7 +37,7 @@ Latest release: 1.2.3 - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Docker H
3737
- [Link environment file](#link-environment-file)
3838
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
3939
- [Advanced User Guide](#advanced-user-guide)
40-
- [Extend osixia/openldap:1.2.3 image](#extend-osixiaopenldap123-image)
40+
- [Extend osixia/openldap:1.2.4 image](#extend-osixiaopenldap124-image)
4141
- [Make your own openldap image](#make-your-own-openldap-image)
4242
- [Tests](#tests)
4343
- [Kubernetes](#kubernetes)
@@ -57,11 +57,11 @@ If you find this image useful here's how you can help:
5757
## Quick Start
5858
Run OpenLDAP docker image:
5959

60-
docker run --name my-openldap-container --detach osixia/openldap:1.2.3
60+
docker run --name my-openldap-container --detach osixia/openldap:1.2.4
6161

6262
Do not forget to add the port mapping for both port 389 and 636 if you wish to access the ldap server from another machine.
6363

64-
docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.2.3
64+
docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.2.4
6565

6666
Either command starts a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
6767

@@ -97,7 +97,7 @@ It will create an empty ldap for the company **Example Inc.** and the domain **e
9797
By default the admin has the password **admin**. All those default settings can be changed at the docker command line, for example:
9898

9999
docker run --env LDAP_ORGANISATION="My Company" --env LDAP_DOMAIN="my-company.com" \
100-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.3
100+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.4
101101

102102
#### Data persistence
103103

@@ -148,12 +148,12 @@ argument to entrypoint if you don't want to overwrite them.
148148
# single file example:
149149
docker run \
150150
--volume ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif \
151-
osixia/openldap:1.2.3 --copy-service
151+
osixia/openldap:1.2.4 --copy-service
152152

153153
#directory example:
154154
docker run \
155155
--volume ./ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
156-
osixia/openldap:1.2.3 --copy-service
156+
osixia/openldap:1.2.4 --copy-service
157157

158158
### Use an existing ldap database
159159

@@ -164,7 +164,7 @@ simply mount this directories as a volume to `/var/lib/ldap` and `/etc/ldap/slap
164164

165165
docker run --volume /data/slapd/database:/var/lib/ldap \
166166
--volume /data/slapd/config:/etc/ldap/slapd.d \
167-
--detach osixia/openldap:1.2.3
167+
--detach osixia/openldap:1.2.4
168168

169169
You can also use data volume containers. Please refer to:
170170
> [https://docs.docker.com/engine/tutorials/dockervolumes/](https://docs.docker.com/engine/tutorials/dockervolumes/)
@@ -184,7 +184,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
184184
#### Use auto-generated certificate
185185
By default, TLS is already configured and enabled, certificate is created using container hostname (it can be set by docker run --hostname option eg: ldap.example.org).
186186

187-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.3
187+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.4
188188

189189
#### Use your own certificate
190190

@@ -194,24 +194,24 @@ You can set your custom certificate at run time, by mounting a directory contain
194194
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
195195
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
196196
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
197-
--detach osixia/openldap:1.2.3
197+
--detach osixia/openldap:1.2.4
198198

199199
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
200200

201201
#### Disable TLS
202202
Add --env LDAP_TLS=false to the run command:
203203

204-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.3
204+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.4
205205

206206
### Multi master replication
207207
Quick example, with the default config.
208208

209209
#Create the first ldap server, save the container id in LDAP_CID and get its IP:
210-
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.3)
210+
LDAP_CID=$(docker run --hostname ldap.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.4)
211211
LDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP_CID)
212212

213213
#Create the second ldap server, save the container id in LDAP2_CID and get its IP:
214-
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.3)
214+
LDAP2_CID=$(docker run --hostname ldap2.example.org --env LDAP_REPLICATION=true --detach osixia/openldap:1.2.4)
215215
LDAP2_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP2_CID)
216216

217217
#Add the pair "ip hostname" to /etc/hosts on each containers,
@@ -247,7 +247,7 @@ You may have some problems with mounted files on some systems. The startup scrip
247247

248248
To fix that run the container with `--copy-service` argument :
249249

250-
docker run [your options] osixia/openldap:1.2.3 --copy-service
250+
docker run [your options] osixia/openldap:1.2.4 --copy-service
251251

252252
### Debug
253253

@@ -256,11 +256,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
256256

257257
Example command to run the container in `debug` mode:
258258

259-
docker run --detach osixia/openldap:1.2.3 --loglevel debug
259+
docker run --detach osixia/openldap:1.2.4 --loglevel debug
260260

261261
See all command line options:
262262

263-
docker run osixia/openldap:1.2.3 --help
263+
docker run osixia/openldap:1.2.4 --help
264264

265265

266266
## Environment Variables
@@ -326,7 +326,7 @@ Replication options:
326326

327327
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
328328

329-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.3
329+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.4
330330

331331
To convert yaml to python online: http://yaml-online-parser.appspot.com/
332332

@@ -346,7 +346,7 @@ Other environment variables:
346346
Environment variables can be set by adding the --env argument in the command line, for example:
347347

348348
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
349-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.3
349+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.4
350350

351351
Be aware that environment variable added in command line will be available at any time
352352
in the container. In this example if someone manage to open a terminal in this container
@@ -357,28 +357,28 @@ he will be able to read the admin password in clear text from environment variab
357357
For example if your environment files **my-env.yaml** and **my-env.startup.yaml** are in /data/ldap/environment
358358

359359
docker run --volume /data/ldap/environment:/container/environment/01-custom \
360-
--detach osixia/openldap:1.2.3
360+
--detach osixia/openldap:1.2.4
361361

362362
Take care to link your environment files folder to `/container/environment/XX-somedir` (with XX < 99 so they will be processed before default environment files) and not directly to `/container/environment` because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).
363363

364364
Note: the container will try to delete the **\*.startup.yaml** file after the end of startup files so the file will also be deleted on the docker host. To prevent that : use --volume /data/ldap/environment:/container/environment/01-custom**:ro** or set all variables in **\*.yaml** file and don't use **\*.startup.yaml**:
365365

366366
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
367-
--detach osixia/openldap:1.2.3
367+
--detach osixia/openldap:1.2.4
368368

369369
#### Make your own image or extend this image
370370

371371
This is the best solution if you have a private registry. Please refer to the [Advanced User Guide](#advanced-user-guide) just below.
372372

373373
## Advanced User Guide
374374

375-
### Extend osixia/openldap:1.2.3 image
375+
### Extend osixia/openldap:1.2.4 image
376376

377377
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
378378

379379
Dockerfile example:
380380

381-
FROM osixia/openldap:1.2.3
381+
FROM osixia/openldap:1.2.4
382382
MAINTAINER Your Name <[email protected]>
383383

384384
ADD bootstrap /container/service/slapd/assets/config/bootstrap

example/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '2'
22
services:
33
openldap:
4-
image: osixia/openldap:1.2.3
4+
image: osixia/openldap:1.2.4
55
container_name: openldap
66
environment:
77
LDAP_LOG_LEVEL: "256"

example/extend-osixia-openldap/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/openldap:1.2.3
1+
FROM osixia/openldap:1.2.4
22
MAINTAINER Your Name <[email protected]>
33

44
ADD bootstrap /container/service/slapd/assets/config/bootstrap

example/kubernetes/simple/ldap-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: ldap
16-
image: osixia/openldap:1.2.3
16+
image: osixia/openldap:1.2.4
1717
volumeMounts:
1818
- name: ldap-data
1919
mountPath: /var/lib/ldap

example/kubernetes/using-secrets/gce-statefullset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
spec:
1313
containers:
1414
- name: azaldap
15-
image: osixia/openldap:1.2.3
15+
image: osixia/openldap:1.2.4
1616
imagePullPolicy: IfNotPresent
1717
#command: ["/bin/bash","-c","while [ 1 = 1 ] ; do sleep 1; date; done"]
1818
ports:

example/kubernetes/using-secrets/ldap-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: ldap
16-
image: osixia/openldap:1.2.3
16+
image: osixia/openldap:1.2.4
1717
args: ["--copy-service"]
1818
volumeMounts:
1919
- name: ldap-data

image/environment/default.startup.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ KEEP_EXISTING_CONFIG: false
5757
# Remove config after setup
5858
LDAP_REMOVE_CONFIG_AFTER_SETUP: true
5959

60-
# Ulimit
61-
LDAP_NOFILE: 1024
62-
6360
# ssl-helper environment variables prefix
6461
LDAP_SSL_HELPER_PREFIX: ldap # ssl-helper first search config from LDAP_SSL_HELPER_* variables, before SSL_HELPER_* variables.
6562

image/environment/default.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
# General container configuration
99
# see table 5.1 in http://www.openldap.org/doc/admin24/slapdconf2.html for the available log levels.
1010
LDAP_LOG_LEVEL: 256
11+
12+
# Ulimit
13+
LDAP_NOFILE: 1024

0 commit comments

Comments
 (0)