docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Add read function to read the content of a file

Open NicolasDorier opened this issue 5 years ago • 1 comments

This has been very useful in my fork for the following usecase:

I wanted to use docker-gen with TOR. When you create a hidden service, TOR create a file at a specific location with the TOR onion host that represent your service. I needed to use this onion host as input for generating my nginx configuration file. So my nginx.tmpl needed to read a file.

NicolasDorier avatar Mar 18 '19 14:03 NicolasDorier

Two years later i did almost same thing https://github.com/nginx-proxy/docker-gen/pull/399 The feature not popular, but required in some cases

aywan avatar Jan 22 '22 19:01 aywan

This was implemented here through the include function, so I think this one can be closed.

josegonzalez avatar Feb 25 '24 17:02 josegonzalez

Thanks for for the reminder @josegonzalez 👍

buchdag avatar Feb 25 '24 18:02 buchdag