TACC / abaco

Actor Based Co(mputing)ntainers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow config through environment variables

joestubbs opened this issue · comments

Currently, the config module uses the ConfigParser class to parse a .ini file. Let's expand this to first look for an environment variable with name section_option (e.g., workers_auto_remove). If the environment variable is present, that will be used; otherwise, the config object will fall back to doing what it is currently: looking for a file called service.conf and parsing it for the variable.

Providing a path from moving away from config files and towards environment variables will make it easier to deploy onto orchestration systems like swarm and k8s.

Released in 0.12.0