This repository provides an easy way to generate various simple dummy docker images that we commonly use to test Pydio Cells against an LDAP external directory.
The generated images are then uploaded to the Docker hub.
To launch the image simply run:
docker run --rm -p "389:389" pydio/ldap-testing:tiny --loglevel debug
In order to successfully run the makefile, you need to:
- have make and php installed on your local workstation
- clone this repository
To build, simply run following commands:
# To generate the default minimal image with only ~10 users
make build
# To generate a larger image
export TAG=medium && make build
Pydio Mainteners only:
You should have a docker account configured on your machine. Once you have modified and tested the image you want to update, only run:
make tiny # ~10 users
make medium # ~12k users
This:
- generates dummy ldif files with users and groups
- generates and publishes the docker image
You might want to customise your image and publish it in another docker hub account.
To do so, you might impact following files:
- the
Makefile
to define main variables - the
dummy-users.csv
(that can be found underassets/tiny
orassets/medium
to change the user that are used.
Please make extra care not to modify the main pydio/ldap-testing
blindly: we rely on some of the well known values for our integration tests.
We used the Mockaroo to generate our set of test data.
The image we use is based on the nice osixia/openldap:latest docker image that provides a running OpenLDAP in a docker container out of the box.