Skip to content

[Feature Request] Support _FILE suffix in docker images #43603

@rjernst

Description

@rjernst

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

Metadata

Metadata

Assignees

Labels

:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsTeam:DeliveryMeta label for Delivery team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions