Skip to content

Commit 5e10294

Browse files
committed
v1.2.5
1 parent 14ca000 commit 5e10294

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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.5] - Unreleased
7+
## [1.2.5] - 2019-08-16
88
## Added
99
- Support for docker secrets #325. Thanks to @anagno !
1010
- Add DISABLE_CHOWN environment variable #240

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.5-dev
2+
VERSION = 1.2.5
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.5-dev - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/openldap/) 
7+
Latest release: 1.2.5 - 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

@@ -38,7 +38,7 @@ Latest release: 1.2.5-dev - OpenLDAP 2.4.47 - [Changelog](CHANGELOG.md) | [Dock
3838
- [Docker Secrets](#Docker-Secrets)
3939
- [Make your own image or extend this image](#Make-your-own-image-or-extend-this-image)
4040
- [Advanced User Guide](#Advanced-User-Guide)
41-
- [Extend osixia/openldap:1.2.5-dev image](#Extend-osixiaopenldap125-dev-image)
41+
- [Extend osixia/openldap:1.2.5 image](#Extend-osixiaopenldap125-dev-image)
4242
- [Make your own openldap image](#Make-your-own-openldap-image)
4343
- [Tests](#Tests)
4444
- [Kubernetes](#Kubernetes)
@@ -58,11 +58,11 @@ If you find this image useful here's how you can help:
5858
## Quick Start
5959
Run OpenLDAP docker image:
6060

61-
docker run --name my-openldap-container --detach osixia/openldap:1.2.5-dev
61+
docker run --name my-openldap-container --detach osixia/openldap:1.2.5
6262

6363
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.
6464

65-
docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.2.5-dev
65+
docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.2.5
6666

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

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

100100
docker run --env LDAP_ORGANISATION="My Company" --env LDAP_DOMAIN="my-company.com" \
101-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.5-dev
101+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.5
102102

103103
#### Data persistence
104104

@@ -149,12 +149,12 @@ argument to entrypoint if you don't want to overwrite them.
149149
# single file example:
150150
docker run \
151151
--volume ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif \
152-
osixia/openldap:1.2.5-dev --copy-service
152+
osixia/openldap:1.2.5 --copy-service
153153

154154
#directory example:
155155
docker run \
156156
--volume ./ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
157-
osixia/openldap:1.2.5-dev --copy-service
157+
osixia/openldap:1.2.5 --copy-service
158158

159159
### Use an existing ldap database
160160

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

166166
docker run --volume /data/slapd/database:/var/lib/ldap \
167167
--volume /data/slapd/config:/etc/ldap/slapd.d \
168-
--detach osixia/openldap:1.2.5-dev
168+
--detach osixia/openldap:1.2.5
169169

170170
You can also use data volume containers. Please refer to:
171171
> [https://docs.docker.com/engine/tutorials/dockervolumes/](https://docs.docker.com/engine/tutorials/dockervolumes/)
@@ -185,7 +185,7 @@ If you are looking for a simple solution to administrate your ldap server you ca
185185
#### Use auto-generated certificate
186186
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).
187187

188-
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.5-dev
188+
docker run --hostname ldap.my-company.com --detach osixia/openldap:1.2.5
189189

190190
#### Use your own certificate
191191

@@ -195,24 +195,24 @@ You can set your custom certificate at run time, by mounting a directory contain
195195
--env LDAP_TLS_CRT_FILENAME=my-ldap.crt \
196196
--env LDAP_TLS_KEY_FILENAME=my-ldap.key \
197197
--env LDAP_TLS_CA_CRT_FILENAME=the-ca.crt \
198-
--detach osixia/openldap:1.2.5-dev
198+
--detach osixia/openldap:1.2.5
199199

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

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

205-
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.5-dev
205+
docker run --env LDAP_TLS=false --detach osixia/openldap:1.2.5
206206

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

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

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

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

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

251-
docker run [your options] osixia/openldap:1.2.5-dev --copy-service
251+
docker run [your options] osixia/openldap:1.2.5 --copy-service
252252

253253
### Debug
254254

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

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

260-
docker run --detach osixia/openldap:1.2.5-dev --loglevel debug
260+
docker run --detach osixia/openldap:1.2.5 --loglevel debug
261261

262262
See all command line options:
263263

264-
docker run osixia/openldap:1.2.5-dev --help
264+
docker run osixia/openldap:1.2.5 --help
265265

266266

267267
## Environment Variables
@@ -327,7 +327,7 @@ Replication options:
327327

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

330-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.5-dev
330+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.2.5
331331

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

@@ -348,7 +348,7 @@ Other environment variables:
348348
Environment variables can be set by adding the --env argument in the command line, for example:
349349

350350
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
351-
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.5-dev
351+
--env LDAP_ADMIN_PASSWORD="JonSn0w" --detach osixia/openldap:1.2.5
352352

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

361361
docker run --volume /data/ldap/environment:/container/environment/01-custom \
362-
--detach osixia/openldap:1.2.5-dev
362+
--detach osixia/openldap:1.2.5
363363

364364
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).
365365

366366
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**:
367367

368368
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
369-
--detach osixia/openldap:1.2.5-dev
369+
--detach osixia/openldap:1.2.5
370370

371371
#### Docker Secrets
372372

@@ -385,13 +385,13 @@ This is the best solution if you have a private registry. Please refer to the [A
385385

386386
## Advanced User Guide
387387

388-
### Extend osixia/openldap:1.2.5-dev image
388+
### Extend osixia/openldap:1.2.5 image
389389

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

392392
Dockerfile example:
393393

394-
FROM osixia/openldap:1.2.5-dev
394+
FROM osixia/openldap:1.2.5
395395
MAINTAINER Your Name <your@name.com>
396396

397397
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.5-dev
4+
image: osixia/openldap:1.2.5
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.5-dev
1+
FROM osixia/openldap:1.2.5
22
MAINTAINER Your Name <your@name.com>
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.5-dev
16+
image: osixia/openldap:1.2.5
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.5-dev
15+
image: osixia/openldap:1.2.5
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.5-dev
16+
image: osixia/openldap:1.2.5
1717
args: ["--copy-service"]
1818
volumeMounts:
1919
- name: ldap-data

0 commit comments

Comments
 (0)