-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0.7.0' into stable
- Loading branch information
Showing
15 changed files
with
63 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
[hub]: https://hub.docker.com/r/osixia/phpldapadmin/ | ||
|
||
Latest release: 0.6.12 - phpLDAPadmin 1.2.3 (with php5.5 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) | ||
Latest release: 0.7.0 - phpLDAPadmin 1.2.3 (with php7 patch) - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/) | ||
|
||
**A docker image to run phpLDAPadmin.** | ||
> [phpldapadmin.sourceforge.net](http://phpldapadmin.sourceforge.net) | ||
|
@@ -26,7 +26,7 @@ Latest release: 0.6.12 - phpLDAPadmin 1.2.3 (with php5.5 patch) - [Changelog](CH | |
- [Link environment file](#link-environment-file) | ||
- [Make your own image or extend this image](#make-your-own-image-or-extend-this-image) | ||
- [Advanced User Guide](#advanced-user-guide) | ||
- [Extend osixia/phpldapadmin:0.6.12 image](#extend-osixiaphpldapadmin0612-image) | ||
- [Extend osixia/phpldapadmin:0.7.0 image](#extend-osixiaphpldapadmin070-image) | ||
- [Make your own phpLDAPadmin image](#make-your-own-phpldapadmin-image) | ||
- [Tests](#tests) | ||
- [Kubernetes](#kubernetes) | ||
|
@@ -39,7 +39,7 @@ Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap h | |
|
||
docker run -p 6443:443 \ | ||
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \ | ||
--detach osixia/phpldapadmin:0.6.12 | ||
--detach osixia/phpldapadmin:0.7.0 | ||
|
||
That's it :) you can access phpLDAPadmin on [https://localhost:6443](https://localhost:6443) | ||
|
||
|
@@ -49,7 +49,7 @@ Example script: | |
|
||
#!/bin/bash -e | ||
docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.8 | ||
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 | ||
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 | ||
|
||
PHPLDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" phpldapadmin-service) | ||
|
||
|
@@ -64,9 +64,9 @@ Example script: | |
This image comes with a phpLDAPadmin config.php file that can be easily customized via environment variables for a quick bootstrap, | ||
but setting your own config.php is possible. 2 options: | ||
|
||
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` : | ||
- Link your config file at run time to `/container/service/phpldapadmin/assets/config/config.php` : | ||
|
||
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.12 | ||
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.0 | ||
|
||
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide) | ||
|
||
|
@@ -75,7 +75,7 @@ but setting your own config.php is possible. 2 options: | |
#### Use autogenerated certificate | ||
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). | ||
|
||
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.12 | ||
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.0 | ||
|
||
#### Use your own certificate | ||
|
||
|
@@ -85,22 +85,22 @@ You can set your custom certificate at run time, by mounting a directory contain | |
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \ | ||
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \ | ||
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \ | ||
--detach osixia/phpldapadmin:0.6.12 | ||
--detach osixia/phpldapadmin:0.7.0 | ||
|
||
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide) | ||
|
||
#### Disable HTTPS | ||
Add --env PHPLDAPADMIN_HTTPS=false to the run command : | ||
|
||
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.12 | ||
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.0 | ||
|
||
### Fix docker mounted file problems | ||
|
||
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). | ||
|
||
To fix that run the container with `--copy-service` argument : | ||
|
||
docker run [your options] osixia/phpldapadmin:0.6.12 --copy-service | ||
docker run [your options] osixia/phpldapadmin:0.7.0 --copy-service | ||
|
||
### Debug | ||
|
||
|
@@ -109,11 +109,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`. | |
|
||
Example command to run the container in `debug` mode: | ||
|
||
docker run --detach osixia/phpldapadmin:0.6.12 --loglevel debug | ||
docker run --detach osixia/phpldapadmin:0.7.0 --loglevel debug | ||
|
||
See all command line options: | ||
|
||
docker run osixia/phpldapadmin:0.6.12 --help | ||
docker run osixia/phpldapadmin:0.7.0 --help | ||
|
||
## Environment Variables | ||
|
||
|
@@ -133,7 +133,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab | |
- ldap3.example.org | ||
``` | ||
This will be converted in the phpldapadmin config.php file to : | ||
```php5 | ||
```php7 | ||
$servers->newServer('ldap_pla'); | ||
$servers->setValue('server','name','ldap.example.org'); | ||
$servers->setValue('server','host','ldap.example.org'); | ||
|
@@ -166,7 +166,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab | |
|
||
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python: | ||
|
||
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 | ||
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 | ||
|
||
To convert yaml to python online: http://yaml-online-parser.appspot.com/ | ||
|
||
|
@@ -203,14 +203,14 @@ Other environment variables: | |
Environment variables can be set by adding the --env argument in the command line, for example: | ||
|
||
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \ | ||
--detach osixia/phpldapadmin:0.6.12 | ||
--detach osixia/phpldapadmin:0.7.0 | ||
|
||
#### Link environment file | ||
|
||
For example if your environment file is in : /data/environment/my-env.yaml | ||
|
||
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \ | ||
--detach osixia/phpldapadmin:0.6.12 | ||
--detach osixia/phpldapadmin:0.7.0 | ||
|
||
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). | ||
|
||
|
@@ -220,18 +220,18 @@ This is the best solution if you have a private registry. Please refer to the [A | |
|
||
## Advanced User Guide | ||
|
||
### Extend osixia/phpldapadmin:0.6.12 image | ||
### Extend osixia/phpldapadmin:0.7.0 image | ||
|
||
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image. | ||
|
||
Dockerfile example: | ||
|
||
FROM osixia/phpldapadmin:0.6.12 | ||
FROM osixia/phpldapadmin:0.7.0 | ||
MAINTAINER Your Name <[email protected]> | ||
|
||
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs | ||
ADD ldap-certs /container/service/ldap-client/assets/certs | ||
ADD my-config.php /container/service/phpldapadmin/assets/config.php | ||
ADD my-config.php /container/service/phpldapadmin/assets/config/config.php | ||
ADD environment /container/environment/01-custom | ||
|
||
|
||
|
@@ -248,7 +248,7 @@ Clone this project : | |
Adapt Makefile, set your image NAME and VERSION, for example : | ||
|
||
NAME = osixia/phpldapadmin | ||
VERSION = 0.6.12 | ||
VERSION = 0.7.0 | ||
|
||
becomes : | ||
NAME = billy-the-king/phpldapadmin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
FROM osixia/web-baseimage:1.0.0 | ||
FROM osixia/web-baseimage:1.1.0 | ||
MAINTAINER Bertrand Gouny <[email protected]> | ||
|
||
# phpLDAPadmin version | ||
ENV PHPLDAPADMIN_VERSION 1.2.3 | ||
ENV PHPLDAPADMIN_SHA1 669fca66c75e24137e106fdd02e3832f81146e23 | ||
ARG PHPLDAPADMIN_VERSION=1.2.3 | ||
ARG PHPLDAPADMIN_SHA1=669fca66c75e24137e106fdd02e3832f81146e23 | ||
|
||
# Add multiple process stack to supervise apache2 and php5-fpm | ||
# Add multiple process stack to supervise apache2 and php7.0-fpm | ||
# sources: https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-multiple-process-stack | ||
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-service-available | ||
# https://github.com/osixia/docker-web-baseimage/blob/stable/image/service-available/:apache2/download.sh | ||
# https://github.com/osixia/docker-web-baseimage/blob/stable/image/service-available/:php5-fpm/download.sh | ||
# https://github.com/osixia/docker-web-baseimage/blob/stable/image/service-available/:php7.0-fpm/download.sh | ||
# https://github.com/osixia/light-baseimage/blob/stable/image/service-available/:ssl-tools/download.sh | ||
# Install ca-certificates, curl and php dependencies | ||
# Download phpLDAPadmin, check file integrity, and unzip phpLDAPadmin to /var/www/phpldapadmin_bootstrap | ||
# Remove curl | ||
RUN apt-get update \ | ||
&& /container/tool/add-multiple-process-stack \ | ||
&& /container/tool/add-service-available :apache2 :php5-fpm :ssl-tools \ | ||
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends \ | ||
&& /container/tool/add-service-available :apache2 :php7.0-fpm :ssl-tools \ | ||
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
patch \ | ||
php5-ldap \ | ||
php5-readline \ | ||
php7.0-ldap \ | ||
php7.0-readline \ | ||
php7.0-xml \ | ||
&& curl -o phpldapadmin.tgz -SL https://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/${PHPLDAPADMIN_VERSION}/phpldapadmin-${PHPLDAPADMIN_VERSION}.tgz \ | ||
&& echo "$PHPLDAPADMIN_SHA1 *phpldapadmin.tgz" | sha1sum -c - \ | ||
&& mkdir -p /var/www/phpldapadmin_bootstrap /var/www/phpldapadmin \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
image/service/phpldapadmin/assets/README.md → ...vice/phpldapadmin/assets/config/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Add your custom config.php file here or mount one at docker run to /container/service/phpldapadmin/assets/config.php | ||
Add your custom config.php file here or mount one at docker run to /container/service/phpldapadmin/assets/config/config.php |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
php_value[include_path] = . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters