Skip to content

jsoriano/sensu-embedded-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fpm for Sensu embedded ruby

Lots of checks in the Sensu community plugins have ruby dependencies that are not always easy to be satisfied. This can be a problem for multiple reasons:

  • Production nodes use to have restrictions with the access to internet
  • Nobody really wants to install build tools in production servers
  • You may want to control what version of a gem is installed in your servers
  • You may want to use the embedded ruby and/or don't install a system-wide one

This simple script tries to minimize these problems by offering a straight-forward way to quickly generate debian packages from gems.

It uses docker to start a clean debian with sensu and the embedded ruby to retrieve and build the gems with fpm.

It also builds all gem dependencies as separated debian packages.

Usage

  • Install docker
  • ./build.sh -d debian_dependency1 -d debian_dependency2 gempackage
  • ./build.sh -g gem_dependency1 -g gem_dependency,2.3.4 gempackage
  • e.g: DISTRIBUTIONS=jessie ./build.sh -d libmysqlclient-dev -d activesupport,2.4.7 mysql
  • You'll have the debian packages in the out directory

By default, it builds the package for all the distributions in the dockerfiles directory set DISTRIBUTIONS environment variable to the space-separated list of distributuions you want to build for.

Or use directly the pre-built dockers

About

Create debian packages from ruby gems for Sensu embedded ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages