Docker entrypoint, read environment variables from files.#11829
Docker entrypoint, read environment variables from files.#11829epuronta wants to merge 2 commits intokeycloak:mainfrom
Conversation
|
Hi, In addition to that, I think |
Are those variables still supported? The config list at least does not contain them. If I've understood correctly, all configuration is meant to use the KC_ -prefix down the line.
Good point. Fixed. |
|
I think you also need to exclude Use case |
|
I'm sorry to close this PR, thanks again for the effort and time really appreciated ❤️ |
Adds a special entrypoint script for the Docker image.
The script supports using (mounted) files for configuring sensitive variables (like passwords). It is an alternative to passing the sensitive value directly as an environment variable (KC_DB_PASSWORD=MyPassword).
Basic process:
The information is mounted as a file to the container (e.g. /tmp/kc-db-password)
File path is passed as an environment variable (KC_DB_PASSWORD_FILE=/tmp/kc-db-password)
The entrypoint detects KC_DB_PASSWORD_FILE, reads the file content and exports it as KC_DB_PASSWORD
Closes #10816.
Supersedes the previous PR #10918, which I created off main in my fork and had to close.