mdlayher / rtorrent_exporter

Prometheus exporter that exposes metrics from rTorrent. MIT Licensed.
MIT License
38 stars 15 forks source link

Added Dockerfile, support ENV variables #2

Open dewey opened 7 years ago

dewey commented 7 years ago

Hey,

I wanted to run this in Docker so this pull requests supports that. I changed the project structure a bit so it's easier to run with the default golang:onbuild base image, it also supports environment variables now because that's what Docker prefers over flags.

Breaking change from that is just that the flags have different names now because you can't use dots in environment variable names.

dewey commented 7 years ago

Reason I re-structured the project was that I couldn't get it running with golang:onbuild with that different structure. Will look into it again, not super experienced with Docker so if you are more familiar with it and want to take over feel free to close this PR :)