It is not or only very difficult to purge and reinstall LDAP. However, it makes sense to test how LDAP behaves when it is initially installed or installed via the CES setup. This is possible with a simple trick:
- on a preinstalled CES build the LDAP version to be tested with
cesapp build ..
- find out the LDAP image ID (e.g. with
docker images) and then export it with
docker save image-id > /vagrant/ldap.tar.gz.
- change to a CES, where the ces-setup has not run yet
- import the old image with
docker load < /vagrant/ldap.tar.gz.
- find out the image id with `docker images
- find out which is the latest LDAP release: https://github.com/cloudogu/ldap/releases
- tagging the image:
docker tag <image-id> registry.cloudogu.com/official/ldap:<release-version>.
- running the CES setup
The Ces setup will try to always install the latest LDAP version. When pulling the LDAP image, it will then (if the tag is set correctly) not pull the latest image, but use the image we imported. This should work in most cases, but if the dogu.json from the old LDAP version is not compatible with the imported image (e.g. due to changed volumes), this procedure will not work.