This simple Makefile allows to build package with grafana plugin, that could be installed as usual software.
To build package run it as make plugin_id:version
, it will:
- Run grafana docker image.
- Install plugin there from the official repository. NOTE: additional parameters could be passed with
GRAFANA_CLI_ARGS
, see%
target. - Copy downloaded plugin into
plugin:version
directory. To use custom plugins directory useGF_PATHS_PLUGINS
parameter. - Build the deb and rpm packages.
- If
$RESTART_ON_UPGRADE
environment variable is set in/etc/default/grafana-server
, then server will be restarted during package install/upgrade/remove.
For additional info run make help
- Docker
- fpm
- GNU make