You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-14Lines changed: 60 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ A docker image to run phpLDAPadmin.
9
9
10
10
Run a phpLDAPadmin docker image by replacing `ldap.example.com` with your ldap host or IP :
11
11
12
-
sudo docker run -p 443:443 \
13
-
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
14
-
--detach osixia/phpldapadmin:0.6.7
12
+
docker run -p 6443:443 \
13
+
--env PHPLDAPADMIN_LDAP_HOSTS=ldap.example.com \
14
+
--detach osixia/phpldapadmin:0.6.7
15
15
16
-
That's it :) you can access phpLDAPadmin on [https://localhost](https://localhost)
16
+
That's it :) you can access phpLDAPadmin on [https://localhost:6443](https://localhost:6443)
17
17
18
18
## Beginner Guide
19
19
@@ -135,19 +135,44 @@ Ldap client TLS/LDAPS :
135
135
136
136
More information at : http://www.openldap.org/doc/admin24/tls.html (16.2.2. Client Configuration)
137
137
138
-
### Set environment variables at run time :
138
+
### Set your own environment variables
139
139
140
-
Environment variable can be set directly by adding the -e argument in the command line, for example :
140
+
#### Use command line argument
141
+
Environment variables can be set by adding the --env argument in the command line, for example:
141
142
142
-
docker run -h phpldapadmin.example.org -e PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
143
-
-d osixia/phpldapadmin
143
+
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
144
+
--detach osixia/phpldapadmin:0.6.7
145
+
146
+
#### Link environment file
147
+
148
+
For example if your environment file is in : /data/ldap/environment/my-env.yaml
149
+
150
+
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
151
+
--detach osixia/phpldapadmin:0.6.7
152
+
153
+
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).
154
+
155
+
#### Make your own image or extend this image
156
+
157
+
This is the best solution if you have a private registry. Please refer to the [Advanced User Guide](#advanced-user-guide) just below.
158
+
159
+
## Advanced User Guide
160
+
161
+
### Extend osixia/openldap:1.1.0 image
162
+
163
+
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
144
164
145
-
Or by setting your own `env.yaml` file as a docker volume to `/container/environment/env.yaml`
165
+
Dockerfile example:
146
166
147
-
docker run -h ldap.example.org -v /data/my-env.yaml:/container/environment/env.yaml \
Adapt Makefile, set your image NAME and VERSION, for example :
158
183
159
184
NAME = osixia/phpldapadmin
160
-
VERSION = 0.6.4
185
+
VERSION = 0.6.7
161
186
162
187
becomes :
163
188
NAME = billy-the-king/phpldapadmin
164
189
VERSION = 0.1.0
165
190
191
+
Add your custom certificate and environment files...
192
+
166
193
Build your image :
167
194
168
195
make build
@@ -171,7 +198,7 @@ Run your image :
171
198
172
199
docker run -d billy-the-king/phpldapadmin:0.1.0
173
200
174
-
## Tests
201
+
### Tests
175
202
176
203
We use **Bats** (Bash Automated Testing System) to test this image:
177
204
@@ -180,3 +207,22 @@ We use **Bats** (Bash Automated Testing System) to test this image:
180
207
Install Bats, and in this project directory run :
181
208
182
209
make test
210
+
211
+
### Kubernetes
212
+
213
+
Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.
214
+
215
+
More information:
216
+
- http://kubernetes.io
217
+
- https://github.com/kubernetes/kubernetes
218
+
219
+
An osixia-phpldapadmin kubernetes example is available in **example/kubernetes**
220
+
221
+
### Under the hood: osixia/web-baseimage
222
+
223
+
This image is based on osixia/web-baseimage.
224
+
More info: https://github.com/osixia/docker-web-baseimage
0 commit comments