Skip to content

Commit 4a942a3

Browse files
committed
Merge branch 'release-0.8.0' into stable
2 parents 2935dfc + cf50ada commit 4a942a3

File tree

7 files changed

+29
-174
lines changed

7 files changed

+29
-174
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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+
## [0.8.0] - 2019-05-29
8+
### Changed
9+
- phpLDAPadmin 1.2.4
10+
- Upgrade baseimage to web-baseimage:1.1.2
11+
712
## [0.7.2] - 2018-09-04
813
### Added
914
- Ability to sepcifiy different values for ldap 'host' and 'name' #46
@@ -93,6 +98,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9398
## [0.5.0] - 2015-03-03
9499
New version initial release, no changelog before this sorry.
95100

101+
[0.8.0]: https://github.com/osixia/docker-phpLDAPadmin/compare/v0.7.2...v0.8.0
96102
[0.7.2]: https://github.com/osixia/docker-phpLDAPadmin/compare/v0.7.1...v0.7.2
97103
[0.7.1]: https://github.com/osixia/docker-phpLDAPadmin/compare/v0.7.0...v0.7.1
98104
[0.7.0]: https://github.com/osixia/docker-phpLDAPadmin/compare/v0.6.12...v0.7.0

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = osixia/phpldapadmin
2-
VERSION = 0.7.2
2+
VERSION = 0.8.0
33

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

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[hub]: https://hub.docker.com/r/osixia/phpldapadmin/
77

8-
Latest release: 0.7.2 - phpLDAPadmin 1.2.3 (with php7 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
8+
Latest release: 0.8.0 - phpLDAPadmin 1.2.4 (with php7 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
99

1010
**A docker image to run phpLDAPadmin.**
1111
> [phpldapadmin.sourceforge.net](http://phpldapadmin.sourceforge.net)
@@ -27,7 +27,7 @@ Latest release: 0.7.2 - phpLDAPadmin 1.2.3 (with php7 patch) - [Changelog](CHANG
2727
- [Link environment file](#link-environment-file)
2828
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
2929
- [Advanced User Guide](#advanced-user-guide)
30-
- [Extend osixia/phpldapadmin:0.7.2 image](#extend-osixiaphpldapadmin072-image)
30+
- [Extend osixia/phpldapadmin:0.8.0 image](#extend-osixiaphpldapadmin080-image)
3131
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image)
3232
- [Tests](#tests)
3333
- [Kubernetes](#kubernetes)
@@ -41,7 +41,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h
4141

4242
docker run -p 6443:443 \
4343
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
44-
--detach osixia/phpldapadmin:0.7.2
44+
--detach osixia/phpldapadmin:0.8.0
4545

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

@@ -51,7 +51,7 @@ Example script:
5151

5252
#!/bin/bash -e
5353
docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.8
54-
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.7.2
54+
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.8.0
5555

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

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

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

71-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.2
71+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.8.0
7272

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

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

80-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.2
80+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.8.0
8181

8282
#### Use your own certificate
8383

@@ -87,22 +87,22 @@ You can set your custom certificate at run time, by mounting a directory contain
8787
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
8888
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
8989
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
90-
--detach osixia/phpldapadmin:0.7.2
90+
--detach osixia/phpldapadmin:0.8.0
9191

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

9494
#### Disable HTTPS
9595
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
9696

97-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.2
97+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.8.0
9898

9999
### Fix docker mounted file problems
100100

101101
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).
102102

103103
To fix that run the container with `--copy-service` argument :
104104

105-
docker run [your options] osixia/phpldapadmin:0.7.2 --copy-service
105+
docker run [your options] osixia/phpldapadmin:0.8.0 --copy-service
106106

107107
### Debug
108108

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

112112
Example command to run the container in `debug` mode:
113113

114-
docker run --detach osixia/phpldapadmin:0.7.2 --loglevel debug
114+
docker run --detach osixia/phpldapadmin:0.8.0 --loglevel debug
115115

116116
See all command line options:
117117

118-
docker run osixia/phpldapadmin:0.7.2 --help
118+
docker run osixia/phpldapadmin:0.8.0 --help
119119

120120
## Environment Variables
121121

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

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.7.2
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.8.0
172172

173173
To convert yaml to python online: http://yaml-online-parser.appspot.com/
174174

@@ -215,14 +215,14 @@ Other environment variables:
215215
Environment variables can be set by adding the --env argument in the command line, for example:
216216

217217
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
218-
--detach osixia/phpldapadmin:0.7.2
218+
--detach osixia/phpldapadmin:0.8.0
219219

220220
#### Link environment file
221221

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

224224
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
225-
--detach osixia/phpldapadmin:0.7.2
225+
--detach osixia/phpldapadmin:0.8.0
226226

227227
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).
228228

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

233233
## Advanced User Guide
234234

235-
### Extend osixia/phpldapadmin:0.7.2 image
235+
### Extend osixia/phpldapadmin:0.8.0 image
236236

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

239239
Dockerfile example:
240240

241-
FROM osixia/phpldapadmin:0.7.2
241+
FROM osixia/phpldapadmin:0.8.0
242242
MAINTAINER Your Name <[email protected]>
243243

244244
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs

example/kubernetes/phpldapadmin-rc.yaml

+1-1
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.7.2
18+
image: osixia/phpldapadmin:0.8.0
1919
volumeMounts:
2020
- name: phpldapadmin-certs
2121
mountPath: /container/service/phpldapadmin/assets/apache2/certs

image/Dockerfile

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM osixia/web-baseimage:1.1.1
1+
FROM osixia/web-baseimage:1.1.2
22

33
# phpLDAPadmin version
4-
ARG PHPLDAPADMIN_VERSION=1.2.3
5-
ARG PHPLDAPADMIN_SHA1=669fca66c75e24137e106fdd02e3832f81146e23
4+
ARG PHPLDAPADMIN_VERSION=1.2.4
65

76
# Add multiple process stack to supervise apache2 and php7.0-fpm
87
# sources: https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-multiple-process-stack
@@ -19,16 +18,14 @@ RUN apt-get update \
1918
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
2019
ca-certificates \
2120
curl \
22-
patch \
2321
php7.0-ldap \
2422
php7.0-readline \
2523
php7.0-xml \
26-
&& curl -o phpldapadmin.tgz -SL https://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/${PHPLDAPADMIN_VERSION}/phpldapadmin-${PHPLDAPADMIN_VERSION}.tgz \
27-
&& echo "$PHPLDAPADMIN_SHA1 *phpldapadmin.tgz" | sha1sum -c - \
24+
&& curl -o phpldapadmin.tar.gz -SL https://github.com/leenooks/phpLDAPadmin/archive/${PHPLDAPADMIN_VERSION}.tar.gz \
2825
&& mkdir -p /var/www/phpldapadmin_bootstrap /var/www/phpldapadmin \
29-
&& tar -xzf phpldapadmin.tgz --strip 1 -C /var/www/phpldapadmin_bootstrap \
26+
&& tar -xzf phpldapadmin.tar.gz --strip 1 -C /var/www/phpldapadmin_bootstrap \
3027
&& apt-get remove -y --purge --auto-remove curl ca-certificates \
31-
&& rm phpldapadmin.tgz \
28+
&& rm phpldapadmin.tar.gz \
3229
&& apt-get clean \
3330
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3431

image/service/phpldapadmin/assets/php5.5.patch

-144
This file was deleted.

image/service/phpldapadmin/install.sh

-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ a2enmod deflate expires
1919

2020
# delete unnecessary files
2121
rm -rf /var/www/phpldapadmin_bootstrap/doc
22-
23-
# apply php5.5 patch
24-
patch -p1 -d /var/www/phpldapadmin_bootstrap < /container/service/phpldapadmin/assets/php5.5.patch
25-
sed -i "s/password_hash/password_hash_custom/g" /var/www/phpldapadmin_bootstrap/lib/TemplateRender.php

0 commit comments

Comments
 (0)