Skip to content

innogames/grafana-plugin-packaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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