Skip to content

Commit b43c095

Browse files
committed
- [docker](src/docker) Now use alpine:3.20 (openldap 2.6.7).
- [docker](README.md) Remove obsolete element `version` in `yml` examples. - [demo](demo/Makefile) Remove unsused service `dns`. - [demo](demo/Makefile) Add target `auth-apk_list`. - [demo](demo/docker-compose.yml) Remove obsolete element `version` in docker-compose.yml.
1 parent 76101e0 commit b43c095

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 2.1.5
2+
3+
- [docker](src/docker) Now use alpine:3.20 (openldap 2.6.7).
4+
- [docker](README.md) Remove obsolete element `version` in `yml` examples.
5+
- [demo](demo/Makefile) Remove unsused service `dns`.
6+
- [demo](demo/Makefile) Add target `auth-apk_list`.
7+
- [demo](demo/docker-compose.yml) Remove obsolete element `version` in docker-compose.yml.
8+
19
# 2.1.4
210

311
- [docker](src/docker) Now use alpine:3.19 (openldap 2.6.6).

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
-include *.mk
77

8-
BLD_ARG ?= --build-arg DIST=alpine --build-arg REL=3.19
8+
BLD_ARG ?= --build-arg DIST=alpine --build-arg REL=3.20
99
BLD_REPO ?= mlan/openldap
1010
BLD_VER ?= latest
1111
BLD_KIT ?= DOCKER_BUILDKIT=1

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ ldapsearch -H ldap://auth:389/ -b dc=example,dc=com "(&(objectClass=inetOrgPerso
9797
An example of how to define an OpenLDAP directory service using docker compose is given below. Other services that also use the `backend` network will be able to access the directory service.
9898

9999
```yaml
100-
version: '3'
100+
name: demo
101101
services:
102102
auth:
103103
image: mlan/openldap
@@ -195,7 +195,7 @@ docker run -d --name auth -v auth:/srv mlan/openldap
195195
Or using [docker compose](https://docs.docker.com/compose/) and a `docker-compose.yml` file
196196

197197
```yaml
198-
version: '3'
198+
name: demo
199199
services:
200200
auth:
201201
image: mlan/openldap
@@ -228,7 +228,7 @@ docker run -d --name auth -v $(pwd)/ldif/0/cfg.example.com.ldif:/etc/openldap/sl
228228
Similarly using docker compose, both database 0 and 1 can be bind mounted
229229

230230
```yaml
231-
version: '3'
231+
name: demo
232232
services:
233233
auth:
234234
image: mlan/openldap
@@ -240,7 +240,7 @@ services:
240240
Docker secrets can be used like this
241241

242242
```yaml
243-
version: '3'
243+
name: demo
244244
services:
245245
auth:
246246
image: mlan/openldap
@@ -276,7 +276,7 @@ docker run -d --name auth -e LDAPBASE=dc=sample,dc=org mlan/openldap --root-cn m
276276
Similarly with docker compose but now using the file `ldif/0/cfg.example.com.ldif` as a template.
277277

278278
```yaml
279-
version: '3'
279+
name: demo
280280
services:
281281
auth:
282282
image: mlan/openldap

demo/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AD_DC ?= $(call ad_cut_dot, 1, 1, $(AD_DOM))
1111

1212
SSL_O = $(AD_DOM)
1313

14-
SRV_LIST ?= auth dns gui
14+
SRV_LIST ?= auth gui
1515

1616
NET_ENV ?= --rm --network=demo_backend
1717
SSL_ENV ?= $(NET_ENV) \
@@ -203,3 +203,6 @@ auth-htop: auth-debugtools
203203
auth-debugtools:
204204
docker compose exec auth apk --no-cache --update add \
205205
nano less lsof htop bind-tools iputils strace
206+
207+
auth-apk_list:
208+
docker compose exec auth /bin/sh -c 'apk info -sq $$(apk info -q) | sed -r "N;N;s/([^ ]+) installed size:\n([^ ]+) (.).*/\2\3\t\1/" | sort -h'

demo/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
version: '3'
1+
name: demo
2+
23
services:
34
auth:
45
image: mlan/openldap

0 commit comments

Comments
 (0)