Skip to content

Commit de00099

Browse files
committed
Merge branch 'hotfix-0.6.12' into stable
2 parents 6d61f3c + 543146a commit de00099

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

CHANGELOG.md

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

3+
## 0.6.12
4+
- Fixes Parse error: syntax error, unexpected '}' in /container/service/phpldapadmin/assets/config.php on line 68 #23
5+
- Upgrade baseimage: web-baseimage:0.1.12
6+
37
## 0.6.11
48
- Upgrade baseimage: web-baseimage:0.1.10
59

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.11
2+
VERSION = 0.6.12
33

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

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
[![Docker Pulls](https://img.shields.io/docker/pulls/osixia/phpldapadmin.svg)][hub]
44
[![Docker Stars](https://img.shields.io/docker/stars/osixia/phpldapadmin.svg)][hub]
5-
[![](https://images.microbadger.com/badges/image/osixia/phpldapadmin.svg)](http://microbadger.com/images/osixia/phpldapadmin "Get your own image badge on microbadger.com")
65

76
[hub]: https://hub.docker.com/r/osixia/phpldapadmin/
87

9-
Latest release: 0.6.11 - phpLDAPadmin 1.2.3 (with php5.5 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
8+
Latest release: 0.6.12 - phpLDAPadlin 1.2.3 (with php5.5 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
109

1110
**A docker image to run phpLDAPadmin.**
1211
> [phpldapadmin.sourceforge.net](http://phpldapadmin.sourceforge.net)
@@ -27,7 +26,7 @@ Latest release: 0.6.11 - phpLDAPadmin 1.2.3 (with php5.5 patch) - [Changelog](CH
2726
- [Link environment file](#link-environment-file)
2827
- [Make your own image or extend this image](#make-your-own image-or-extend-this-image)
2928
- [Advanced User Guide](#advanced-user-guide)
30-
- [Extend osixia/phpldapadmin:0.6.11 image](#extend-osixiaphpldapadmin0611-image)
29+
- [Extend osixia/phpldapadmin:0.6.12 image](#extend-osixiaphpldapadmin0612-image)
3130
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image)
3231
- [Tests](#tests)
3332
- [Kubernetes](#kubernetes)
@@ -40,7 +39,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h
4039

4140
docker run -p 6443:443 \
4241
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
43-
--detach osixia/phpldapadmin:0.6.11
42+
--detach osixia/phpldapadmin:0.6.12
4443

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

@@ -51,7 +50,7 @@ Example script:
5150
#!/bin/bash -e
5251
docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.1
5352

54-
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.6.11
53+
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.6.12
5554

5655
PHPLDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" phpldapadmin-service)
5756

@@ -68,7 +67,7 @@ but setting your own config.php is possible. 2 options:
6867

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

71-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.11
70+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.12
7271

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

@@ -77,7 +76,7 @@ but setting your own config.php is possible. 2 options:
7776
#### Use autogenerated certificate
7877
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).
7978

80-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.11
79+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.12
8180

8281
#### Use your own certificate
8382

@@ -87,22 +86,22 @@ You can set your custom certificate at run time, by mounting a directory contain
8786
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
8887
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
8988
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
90-
--detach osixia/phpldapadmin:0.6.11
89+
--detach osixia/phpldapadmin:0.6.12
9190

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

9493
#### Disable HTTPS
9594
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
9695

97-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.11
96+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.12
9897

9998
### Fix docker mounted file problems
10099

101100
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).
102101

103102
To fix that run the container with `--copy-service` argument :
104103

105-
docker run [your options] osixia/phpldapadmin:0.6.11 --copy-service
104+
docker run [your options] osixia/phpldapadmin:0.6.12 --copy-service
106105

107106
### Debug
108107

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

112111
Example command to run the container in `debug` mode:
113112

114-
docker run --detach osixia/phpldapadmin:0.6.11 --loglevel debug
113+
docker run --detach osixia/phpldapadmin:0.6.12 --loglevel debug
115114

116115
See all command line options:
117116

118-
docker run osixia/phpldapadmin:0.6.11 --help
117+
docker run osixia/phpldapadmin:0.6.12 --help
119118

120119
## Environment Variables
121120

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

171-
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.11
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.12
172171

173172
To convert yaml to python online: http://yaml-online-parser.appspot.com/
174173

@@ -205,14 +204,14 @@ Other environment variables:
205204
Environment variables can be set by adding the --env argument in the command line, for example:
206205

207206
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
208-
--detach osixia/phpldapadmin:0.6.11
207+
--detach osixia/phpldapadmin:0.6.12
209208

210209
#### Link environment file
211210

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

214213
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
215-
--detach osixia/phpldapadmin:0.6.11
214+
--detach osixia/phpldapadmin:0.6.12
216215

217216
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).
218217

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

223222
## Advanced User Guide
224223

225-
### Extend osixia/phpldapadmin:0.6.11 image
224+
### Extend osixia/phpldapadmin:0.6.12 image
226225

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

229228
Dockerfile example:
230229

231-
FROM osixia/phpldapadmin:0.6.11
230+
FROM osixia/phpldapadmin:0.6.12
232231
MAINTAINER Your Name <your@name.com>
233232

234233
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs
@@ -250,7 +249,7 @@ Clone this project :
250249
Adapt Makefile, set your image NAME and VERSION, for example :
251250

252251
NAME = osixia/phpldapadmin
253-
VERSION = 0.6.11
252+
VERSION = 0.6.12
254253

255254
becomes :
256255
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.11
18+
image: osixia/phpldapadmin:0.6.12
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.11
1+
FROM osixia/web-baseimage:0.1.12
22
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
33

44
# phpLDAPadmin version

image/service/phpldapadmin/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if [ ! -e "/var/www/phpldapadmin/config/config.php" ]; then
135135
fi
136136

137137
log-helper debug "link ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php to /var/www/phpldapadmin/config/config.php"
138-
ln -sf ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php /var/www/phpldapadmin/config/config.php
138+
cp -f ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php /var/www/phpldapadmin/config/config.php
139139

140140
fi
141141

0 commit comments

Comments
 (0)