The Airlock IAM docker image is designed for containers to be ephemeral. For this reason, we have used "--rm" in the previous examples, which deletes the container storage upon completion.
In order to keep the configuration directory persistent, Docker volumes or bind mounts can be used.
Inside the Docker image, Airlock IAM expects the configuration directory at:
/home/airlock/iam
.
For production-use, creating and copying the complete configuration directory during the build-phase is a viable alternative.
During integration, bind mounts are more convenient to use because config files can be edited locally.