IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
963 stars 309 forks source link

Template location for docker #314

Closed jsteinm1 closed 2 years ago

jsteinm1 commented 2 years ago

Does anyone know the default template location inside of the docker? I can get the docker to use a template if I bash into the container and then run grafana-reporter from the command line. It appears that the default location is templates/ from the location the command is ran, not relative to the grafana-reporter file. I've tried a few locations but none seem to work:

/usr/local/bin/templates (this would be templates/ relative to grafana-reporter) /bin/templates /templates

Or if I can set the templates location as part of my docker configuration that's fine too, just not sure if environment variables would work for this or not.

jsteinm1 commented 2 years ago

Posted too soon, was able to get this working using docker run command to set -templates /usr/local/bin/templates but hopefully this helps anyone else having the same issue