Skip to content

Commit 887d2b6

Browse files
committed
Merge branch 'release-0.7.1' into stable
2 parents 6844ec0 + 9d2fa4d commit 887d2b6

File tree

9 files changed

+43
-20
lines changed

9 files changed

+43
-20
lines changed

CHANGELOG.md

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

3+
## 0.7.1
4+
- Optimise apache config
5+
- Add opcache config
6+
- Upgrade baseimage: web-baseimage:1.1.1
7+
38
## 0.7.0
49
- add config.php in config folder
510
- Upgrade baseimage: web-baseimage:1.1.0 (debian stretch, php7)

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.7.0
2+
VERSION = 0.7.1
33

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

README.md

Lines changed: 16 additions & 16 deletions
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.0 - phpLDAPadmin 1.2.3 (with php7 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) 
8+
Latest release: 0.7.1 - phpLDAPadmin 1.2.3 (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)
@@ -26,7 +26,7 @@ Latest release: 0.7.0 - phpLDAPadmin 1.2.3 (with php7 patch) - [Changelog](CHANG
2626
- [Link environment file](#link-environment-file)
2727
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image)
2828
- [Advanced User Guide](#advanced-user-guide)
29-
- [Extend osixia/phpldapadmin:0.7.0 image](#extend-osixiaphpldapadmin070-image)
29+
- [Extend osixia/phpldapadmin:0.7.1 image](#extend-osixiaphpldapadmin070-image)
3030
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image)
3131
- [Tests](#tests)
3232
- [Kubernetes](#kubernetes)
@@ -39,7 +39,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h
3939

4040
docker run -p 6443:443 \
4141
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
42-
--detach osixia/phpldapadmin:0.7.0
42+
--detach osixia/phpldapadmin:0.7.1
4343

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

@@ -49,7 +49,7 @@ Example script:
4949

5050
#!/bin/bash -e
5151
docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.8
52-
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.7.0
52+
docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.7.1
5353

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

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

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

69-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.0
69+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.1
7070

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

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

78-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.0
78+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.1
7979

8080
#### Use your own certificate
8181

@@ -85,22 +85,22 @@ You can set your custom certificate at run time, by mounting a directory contain
8585
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
8686
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
8787
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
88-
--detach osixia/phpldapadmin:0.7.0
88+
--detach osixia/phpldapadmin:0.7.1
8989

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

9292
#### Disable HTTPS
9393
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
9494

95-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.0
95+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.1
9696

9797
### Fix docker mounted file problems
9898

9999
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).
100100

101101
To fix that run the container with `--copy-service` argument :
102102

103-
docker run [your options] osixia/phpldapadmin:0.7.0 --copy-service
103+
docker run [your options] osixia/phpldapadmin:0.7.1 --copy-service
104104

105105
### Debug
106106

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

110110
Example command to run the container in `debug` mode:
111111

112-
docker run --detach osixia/phpldapadmin:0.7.0 --loglevel debug
112+
docker run --detach osixia/phpldapadmin:0.7.1 --loglevel debug
113113

114114
See all command line options:
115115

116-
docker run osixia/phpldapadmin:0.7.0 --help
116+
docker run osixia/phpldapadmin:0.7.1 --help
117117

118118
## Environment Variables
119119

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

169-
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.0
169+
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.1
170170

171171
To convert yaml to python online: http://yaml-online-parser.appspot.com/
172172

@@ -203,14 +203,14 @@ Other environment variables:
203203
Environment variables can be set by adding the --env argument in the command line, for example:
204204

205205
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
206-
--detach osixia/phpldapadmin:0.7.0
206+
--detach osixia/phpldapadmin:0.7.1
207207

208208
#### Link environment file
209209

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

212212
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
213-
--detach osixia/phpldapadmin:0.7.0
213+
--detach osixia/phpldapadmin:0.7.1
214214

215215
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).
216216

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

221221
## Advanced User Guide
222222

223-
### Extend osixia/phpldapadmin:0.7.0 image
223+
### Extend osixia/phpldapadmin:0.7.1 image
224224

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

227227
Dockerfile example:
228228

229-
FROM osixia/phpldapadmin:0.7.0
229+
FROM osixia/phpldapadmin:0.7.1
230230
MAINTAINER Your Name <your@name.com>
231231

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

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.7.0
18+
image: osixia/phpldapadmin:0.7.1
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:1.1.0
1+
FROM osixia/web-baseimage:1.1.1
22
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
33

44
# phpLDAPadmin version

image/service/phpldapadmin/assets/apache2/http.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
DocumentRoot /var/www/phpldapadmin/htdocs
88

9+
Include /etc/apache2/conf-available/gzip.conf
10+
Include /etc/apache2/conf-available/cache.conf
11+
912
<Directory /var/www/phpldapadmin/htdocs >
1013
Require all granted
1114
</Directory>

image/service/phpldapadmin/assets/apache2/https.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66

77
DocumentRoot /var/www/phpldapadmin/htdocs
88

9-
Include /etc/apache2/conf-available/vhost-partial-ssl.conf
9+
Include /etc/apache2/conf-available/ssl.conf
1010

1111
SSLCertificateFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_CRT_FILENAME}
1212
SSLCertificateKeyFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_KEY_FILENAME}
1313
#SSLCACertificateFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME}
1414

15+
Include /etc/apache2/conf-available/gzip.conf
16+
Include /etc/apache2/conf-available/cache.conf
17+
1518
<Directory /var/www/phpldapadmin/htdocs >
1619
Require all granted
1720
</Directory>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
opcache.enable=1
2+
opcache.validate_timestamps=0
3+
opcache.max_accelerated_files=5413
4+
opcache.memory_consumption=128
5+
opcache.interned_strings_buffer=16
6+
opcache.fast_shutdown=1

image/service/phpldapadmin/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
cat /container/service/phpldapadmin/assets/php7.0-fpm/pool.conf >> /etc/php/7.0/fpm/pool.d/www.conf
55
rm /container/service/phpldapadmin/assets/php7.0-fpm/pool.conf
66

7+
cp -f /container/service/phpldapadmin/assets/php7.0-fpm/opcache.ini /etc/php/7.0/fpm/conf.d/opcache.ini
8+
rm /container/service/phpldapadmin/assets/php7.0-fpm/opcache.ini
9+
710
mkdir -p /var/www/tmp
811
chown www-data:www-data /var/www/tmp
912

1013
# remove apache default host
1114
a2dissite 000-default
1215
rm -rf /var/www/html
1316

17+
# Add apache modules
18+
a2enmod deflate expires
19+
1420
# delete unnecessary files
1521
rm -rf /var/www/phpldapadmin_bootstrap/doc
1622

0 commit comments

Comments
 (0)