Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 832 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 832 Bytes

DEB and RPM packager for grafana plugins

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 use GF_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

Requirements

  • Docker
  • fpm
  • GNU make