Skip to content

Commit 68fd600

Browse files
committed
v0.6.8
1 parent 7845e14 commit 68fd600

File tree

6 files changed

+33
-21
lines changed

6 files changed

+33
-21
lines changed

CHANGELOG.md

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

3+
## 0.6.8
4+
- Upgrade baseimage: web-baseimage:0.1.9
5+
36
## 0.6.7
47
- Upgrade baseimage: web-baseimage:0.1.8
58

Makefile

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

44
.PHONY: all build build-nocache test tag_latest release
55

README.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# osixia/phpldapadmin
22

3-
[![](https://badge.imagelayers.io/osixia/phpldapadmin:latest.svg)](https://imagelayers.io/?images=osixia/phpldapadmin:latest 'Get your own badge on imagelayers.io') | Latest release: 0.6.7 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
3+
[![](https://badge.imagelayers.io/osixia/phpldapadmin:latest.svg)](https://imagelayers.io/?images=osixia/phpldapadmin:latest 'Get your own badge on imagelayers.io') | Latest release: 0.6.8 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
44

55
A docker image to run phpLDAPadmin.
66
> [phpldapadmin.sourceforge.net](http://phpldapadmin.sourceforge.net)
@@ -13,14 +13,15 @@ A docker image to run phpLDAPadmin.
1313
- [Use autogenerated certificate](#use-autogenerated-certificate)
1414
- [Use your own certificate](#use-your-own-certificate)
1515
- [Disable HTTPS](#disable-https)
16+
- [Fix docker mounted file problems](#fix-docker-mounted-file-problems)
1617
- [Debug](#debug)
1718
- [Environment Variables](#environment-variables)
1819
- [Set your own environment variables](#set-your-own environment-variables)
1920
- [Use command line argument](#use-command-line-argument)
2021
- [Link environment file](#link-environment-file)
2122
- [Make your own image or extend this image](#make-your-own image-or-extend-this-image)
2223
- [Advanced User Guide](#advanced-user-guide)
23-
- [Extend osixia/phpldapadmin:0.6.7 image](#extend-osixiaphpldapadmin067-image)
24+
- [Extend osixia/phpldapadmin:0.6.8 image](#extend-osixiaphpldapadmin068-image)
2425
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image)
2526
- [Tests](#tests)
2627
- [Kubernetes](#kubernetes)
@@ -33,7 +34,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h
3334

3435
docker run -p 6443:443 \
3536
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
36-
--detach osixia/phpldapadmin:0.6.7
37+
--detach osixia/phpldapadmin:0.6.8
3738

3839
That's it :) you can access phpLDAPadmin on [https://localhost:6443](https://localhost:6443)
3940

@@ -44,11 +45,11 @@ Example script:
4445
#!/bin/bash -e
4546

4647
# Run a ldap server, save the container id in LDAP_CID and get its IP:
47-
LDAP_CID=$(docker run --hostname ldap.example.org --detach osixia/openldap:1.1.0)
48+
LDAP_CID=$(docker run --hostname ldap.example.org --detach osixia/openldap:1.1.1)
4849
LDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $LDAP_CID)
4950

5051
# Run phpLDAPadmin and set ldap host to ldap ip
51-
PHPLDAP_CID=$(docker run --hostname phpldapadmin.example.org --env PHPLDAPADMIN_LDAP_HOSTS=$LDAP_IP --detach osixia/phpldapadmin:0.6.7)
52+
PHPLDAP_CID=$(docker run --hostname phpldapadmin.example.org --env PHPLDAPADMIN_LDAP_HOSTS=$LDAP_IP --detach osixia/phpldapadmin:0.6.8)
5253

5354
# We get phpLDAPadmin container ip
5455
PHPLDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $PHPLDAP_CID)
@@ -66,7 +67,7 @@ but setting your own config.php is possible. 2 options:
6667

6768
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
6869

69-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.7
70+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.8
7071

7172
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
7273

@@ -75,7 +76,7 @@ but setting your own config.php is possible. 2 options:
7576
#### Use autogenerated certificate
7677
By default HTTPS is enable, a certificate is created with the container hostname (it can be set by docker run --hostname option eg: phpldapadmin.my-company.com).
7778

78-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.7
79+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.8
7980

8081
#### Use your own certificate
8182

@@ -85,14 +86,22 @@ You can set your custom certificate at run time, by mounting a directory contain
8586
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
8687
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
8788
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
88-
--detach osixia/phpldapadmin:0.6.7
89+
--detach osixia/phpldapadmin:0.6.8
8990

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

9293
#### Disable HTTPS
9394
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
9495

95-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.7
96+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.8
97+
98+
### Fix docker mounted file problems
99+
100+
You may have some problems with mounted files on some systems. The startup script try to make some file adjustment and fix files owner and permissions, this can result in multiple errors. See [Docker documentation](https://docs.docker.com/v1.4/userguide/dockervolumes/#mount-a-host-file-as-a-data-volume).
101+
102+
To fix that run the container with `--copy-service` argument :
103+
104+
docker run [your options] osixia/phpldapadmin:0.6.8 --copy-service
96105

97106
### Debug
98107

@@ -101,11 +110,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
101110

102111
Example command to run the container in `debug` mode:
103112

104-
docker run --detach osixia/phpldapadmin:0.6.7 --loglevel debug
113+
docker run --detach osixia/phpldapadmin:0.6.8 --loglevel debug
105114

106115
See all command line options:
107116

108-
docker run osixia/phpldapadmin:0.6.7 --help
117+
docker run osixia/phpldapadmin:0.6.8 --help
109118

110119
## Environment Variables
111120

@@ -158,7 +167,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab
158167
159168
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
160169

161-
docker run --env PHPLDAPADMIN_LDAP_HOSTS="#PYTHON2BASH:[{'ldap.example.org': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}, 'ldap2.example.org', 'ldap3.example.org']" --detach osixia/phpldapadmin:0.6.7
170+
docker run --env PHPLDAPADMIN_LDAP_HOSTS="#PYTHON2BASH:[{'ldap.example.org': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}, 'ldap2.example.org', 'ldap3.example.org']" --detach osixia/phpldapadmin:0.6.8
162171

163172
To convert yaml to python online: http://yaml-online-parser.appspot.com/
164173

@@ -191,14 +200,14 @@ Other environment variables:
191200
Environment variables can be set by adding the --env argument in the command line, for example:
192201

193202
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
194-
--detach osixia/phpldapadmin:0.6.7
203+
--detach osixia/phpldapadmin:0.6.8
195204

196205
#### Link environment file
197206

198207
For example if your environment file is in : /data/environment/my-env.yaml
199208

200209
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
201-
--detach osixia/phpldapadmin:0.6.7
210+
--detach osixia/phpldapadmin:0.6.8
202211

203212
Take care to link your environment file 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).
204213

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

209218
## Advanced User Guide
210219

211-
### Extend osixia/phpldapadmin:0.6.7 image
220+
### Extend osixia/phpldapadmin:0.6.8 image
212221

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

215224
Dockerfile example:
216225

217-
FROM osixia/phpldapadmin:0.6.7
226+
FROM osixia/phpldapadmin:0.6.8
218227
MAINTAINER Your Name <your@name.com>
219228

220229
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs
@@ -233,7 +242,7 @@ Clone this project :
233242
Adapt Makefile, set your image NAME and VERSION, for example :
234243

235244
NAME = osixia/phpldapadmin
236-
VERSION = 0.6.7
245+
VERSION = 0.6.8
237246

238247
becomes :
239248
NAME = billy-the-king/phpldapadmin

example/kubernetes/phpldapadmin-rc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: phpldapadmin
18-
image: osixia/phpldapadmin:0.6.7
18+
image: osixia/phpldapadmin:0.6.8
1919
volumeMounts:
2020
- name: phpldapadmin-certs
2121
mountPath: /container/service/phpldapadmin/assets/apache2/certs

image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/web-baseimage:0.1.8
1+
FROM osixia/web-baseimage:0.1.9
22
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
33

44
# phpLDAPadmin version

test/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ load test_helper
2929
tmp_file="$BATS_TMPDIR/docker-test"
3030

3131
# we start a new openldap container
32-
LDAP_CID=$(docker run -d osixia/openldap:1.1.0)
32+
LDAP_CID=$(docker run -d osixia/openldap:1.1.1)
3333
LDAP_IP=$(get_container_ip_by_cid $LDAP_CID)
3434

3535
# we start the wordpress container and set DB_HOSTS

0 commit comments

Comments
 (0)