Hacker News new | ask | show | jobs
by withinboredom 470 days ago
> Almost every application out there supports environment variables for configuration

It didn't used to be that way, surprisingly. Most configuration was done via files using INI. Then people started using JSON, and now YAML -- if they have a configuration file at all. Containers pretty much required using environment for configuration because it was the only way to "inject" configuration before we got volumes and fancy stuff like secrets.

That doesn't make it any less of a hack instead of a proper configuration format.

1 comments

Interesting! I thought the concept of environment variables was a Linux kernel primitive used by apps since forever. Admittedly, my first experience with computers was on Windows.