dockerize
dockerize copied to clipboard
Allow the use of a configuration file for the template context
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.
I've submitted a PR that supports this functionality.
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.