malaskowski / aet-docker

Docker support for AET - easy to set up local/developer environment with example Docker Swarm configuration.
Apache License 2.0
8 stars 9 forks source link

Karaf support for docker secrets #28

Closed malaskowski closed 4 years ago

malaskowski commented 4 years ago

AET Karaf image reads all files in the /run/secrets/ directory matching KARAF_* pattern export them as environment variable. See the [Karaf entrypoint][/blob/master/karaf/entrypoint.sh] for details.

E.g. If the file /run/secrets/KARAF_MY_SECRET is found, its content will be exported to MY_SECRET environment variable.

This feature is done to support login modifier reading from env (https://github.com/Cognifide/aet/pull/583).