|
|
@@ -72,6 +72,17 @@ simply mount this directories as a volume to `/var/lib/ldap` and `/etc/ldap/slap
|
|
|
You can also use data volume containers. Please refer to :
|
|
|
> [https://docs.docker.com/userguide/dockervolumes/](https://docs.docker.com/userguide/dockervolumes/)
|
|
|
|
|
|
+
|
|
|
+### Debug
|
|
|
+
|
|
|
+The container default log level is **info**.
|
|
|
+Available levels: `none`, `error`, `warning`, `info`, `debug` and `trace`.
|
|
|
+
|
|
|
+Example command to run the container in `debug` mode :
|
|
|
+
|
|
|
+ docker run --detach osixia/openldap:1.1.0 --loglevel debug
|
|
|
+
|
|
|
+
|
|
|
### TLS
|
|
|
|
|
|
#### Use autogenerated certificate
|
|
|
@@ -222,9 +233,9 @@ he will be able to read the admin password in clear text from environment variab
|
|
|
--volume /data/my-env.yaml.startup:/container/environment/01-custom/env.yaml.startup \
|
|
|
--detach osixia/openldap:1.1.0
|
|
|
|
|
|
-Note: the container will try to delete the ** *.yaml.startup** file after the end of startup files so the file will also be deleted on the docker host.
|
|
|
+Note: the container will try to delete the **.yaml.startup** file after the end of startup files so the file will also be deleted on the docker host.
|
|
|
|
|
|
-Use --volume /data/my-env.yaml.startup:/container/environment/01-custom/env.yaml.startup**:ro** to prevent that or set all variables in** *.yaml** file and don't mount ** *.yaml.startup** file but all sensitive data will persists in container environment.
|
|
|
+Use --volume /data/my-env.yaml.startup:/container/environment/01-custom/env.yaml.startup**:ro** to prevent that or set all variables in **.yaml** file and don't mount **.yaml.startup** file but all sensitive data will persists in container environment.
|
|
|
|
|
|
#### Make your own image or extend this one
|
|
|
|
|
|
@@ -283,6 +294,18 @@ More information:
|
|
|
|
|
|
osixia-openldap kubernetes examples are available in **example/kubernetes**
|
|
|
|
|
|
+## Under the hood : osixia/light-baseimage
|
|
|
+
|
|
|
+This image is base on osixia/light-baseimage.
|
|
|
+It uses the following features :
|
|
|
+
|
|
|
+- **cfssl** service to generate tls certificates
|
|
|
+- **log-helper** tool to print log messages based on the log level
|
|
|
+- **run** tool as entrypoint to init the container environment
|
|
|
+
|
|
|
+To fully understand how this image works take a look at :
|
|
|
+https://github.com/osixia/docker-light-baseimage
|
|
|
+
|
|
|
## Contributing
|
|
|
|
|
|
If you find this image useful here's how you can help:
|
|
|
@@ -291,15 +314,6 @@ If you find this image useful here's how you can help:
|
|
|
- Help new users with [issues](https://github.com/osixia/docker-openldap/issues) they may encounter
|
|
|
- Support the development of this image and star this repo ! ;)
|
|
|
|
|
|
-## Debug
|
|
|
-
|
|
|
-The container default log level is **info**.
|
|
|
-Available levels: `none`, `error`, `warning`, `info`, `debug` and `trace`.
|
|
|
-
|
|
|
-Example command to run the container in `debug` mode :
|
|
|
-
|
|
|
- docker run --detach osixia/openldap:1.1.0 --loglevel debug
|
|
|
-
|
|
|
## Tests
|
|
|
|
|
|
We use **Bats** (Bash Automated Testing System) to test this image:
|
|
|
@@ -309,15 +323,3 @@ We use **Bats** (Bash Automated Testing System) to test this image:
|
|
|
Install Bats, and in this project directory run :
|
|
|
|
|
|
make test
|
|
|
-
|
|
|
-### Under the hood : osixia/light-baseimage
|
|
|
-
|
|
|
-This image is base on osixia/light-baseimage.
|
|
|
-It uses the following features :
|
|
|
-
|
|
|
-- **cfssl** service to generate tls certificates
|
|
|
-- **log-helper** tool to print log messages based on the log level
|
|
|
-- **run** tool as entrypoint to init the container environment
|
|
|
-
|
|
|
-To fully understand how this image works take a look at :
|
|
|
-https://github.com/osixia/docker-light-baseimage
|