Coder Social home page Coder Social logo

sensu-embedded-fpm's Introduction

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

sensu-embedded-fpm's People

Contributors

jsoriano avatar jplana avatar smeruelo avatar

Stargazers

 avatar Javier Juarez avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jjuarez jplana

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.