For running in containers (Docker / Kubernetes) it is highly desirable to have all writeable files and directories under a single parent. This parent gets mounted as a persistent volume - that can be attached / re-attached if the container is moved to a new host.
This can be done on OpenDJ using a post install script which moves config/, logs/ db/ etc. to a new location, and updates the instance.loc directory.
However - it would be nice to have this work out of the box so that DJ runs on Docker with no modification.
A proposed convention would be something like:
And instance.loc would contain: