Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

ruby_pkg (5) Versions 0.1.0

Builds a ruby package using ruby_build and fpm

Policyfile
Berkshelf
Knife
cookbook 'ruby_pkg', '= 0.1.0', :supermarket
cookbook 'ruby_pkg', '= 0.1.0'
knife supermarket install ruby_pkg
knife supermarket download ruby_pkg
README
Dependencies
Quality -%

ruby_pkg

Build Status

Description

A Chef cookbook and Vagrant setup for building and packaging a specified Ruby version.

Requirements

Requires ruby_build and fpm-tng community cookbooks.

Should work on all Debian based Linux distributions. Support for some other platforms (that ruby_build and fpm support) is planned. Please open an issue or pull request if interested.

Usage

This cookbook is intended to be used with the included Vagrant setup (although you can use the cookbook directly by adding it to run_list or by including it in your own cookbooks).

To use Vagrant you need to clone the repository from Github:

    $ git clone https://github.com/reaktor/chef-ruby_pkg.git
    $ cd chef-ruby_pkg

Install Vagrant environment

  1. Install Vagrant v1.2 or later
  2. Install needed Vagrant plugins:

    $ vagrant plugin install vagrant-berkshelf
    $ vagrant plugin install vagrant-omnibus
    
  3. Add your favorite Vagrant box, for example:

    $ vagrant box add "ubuntu-12.04" "http://files.vagrantup.com/precise64.box"
    

Building with Vagrant

Spin up the box to build and package a specified Ruby version:

$ VERSION="1.9.3-p429" BOX="ubuntu-12.04" vagrant up

The package will be created to pkg directory.

Environment variables for Vagrant

  • $BOX - The Vagrant box name. Defaults to "squeeze-6.0".
  • $DEBUG - If set, enable debug logging of the Chef run.
  • $VERSION - The Ruby version to package. Passed to ruby_build. Defaults to "1.9.3-p429"
  • $ITERATION - The package iteration version number. Passed to fpm. Defaults to 1.
  • $MAINTAINER - The (optional) package maintainer. Passed to fpm.

License and Author

Author:: Teemu Matilainen <teemu.matilainen@reaktor.fi>

Copyright © 2013, Reaktor Innovations Oy

Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE).

Dependent cookbooks

apt >= 0.0.0
fpm-tng ~> 0.1.6
ruby_build ~> 0.6

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found