-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support _FILE suffix in docker images #43603
Labels
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Delivery
Meta label for Delivery team
Comments
tlrx
added
the
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
label
Jun 26, 2019
Pinging @elastic/es-core-infra |
pugnascotia
added a commit
to pugnascotia/elasticsearch
that referenced
this issue
Oct 2, 2019
Closes elastic#43603. Allow a password to be specifed in an ES Docker container by specifying a file path in the ELASTIC_PASSWORD_FILE environment variable.
pugnascotia
added a commit
that referenced
this issue
Nov 12, 2019
pugnascotia
added a commit
to pugnascotia/elasticsearch
that referenced
this issue
Nov 15, 2019
Backport of elastic#47573. Closes elastic#43603. Allow environment variables to be passed to ES in a Docker container via a file, by setting an environment variable with the `_FILE` suffix that points to the file with the intended value of the env var.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Delivery
Meta label for Delivery team
NOTE: This was originally filed by @nikeee in elastic/elasticsearch-docker#183.
There is a convention on official docker images that environment variables that end in _FILE are read as a file and then assigned to a variable without the _FILE suffix. For example, setting the environment variable ELASTIC_PASSWORD_FILE to /run/secrets/secret-password will read the file /run/secrets/secret-password and assign its contents to the environment variable ELASTIC_PASSWORD. This is especially handy when using Docker secrets.
Related issue on Grafana: grafana/grafana-docker#166
Thread on forums: https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107
The text was updated successfully, but these errors were encountered: