dockerize icon indicating copy to clipboard operation
dockerize copied to clipboard

Allow the use of a configuration file for the template context

Open willseward opened this issue 8 years ago • 1 comments

Ex.

app.conf.tmpl

version: {{ Env.VERSION }}
app_name: {{ Conf.App.AppName }}
redis_host: {{ Conf.Redis.Host}}

app.yml

AppName: my app"

redis.conf

Host: localhost

I believe the ability to version control some parameters would be useful.

willseward avatar Dec 21 '16 19:12 willseward

I've submitted a PR that supports this functionality.

sychan avatar Oct 27 '17 15:10 sychan

I've submitted a PR that supports this functionality.

… and that PR was merged in fork https://github.com/powerman/dockerize.

@willseward That PR implement support for loading defaults for env variables from INI file, which isn't exactly the same what you've asked for, but it may work for you. If this won't solve your issue then please consider opening issue in fork repo, but, to be honest, I doubt adding ability to load another one type of config files is a good idea.

powerman avatar Nov 30 '18 23:11 powerman