Chef cookbook to cook AMI with Packer for Ruby on Rails application
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pizza
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
README.md
Rakefile
packer-ci.json
packer.json
variables.json

README.md

Pizza

Chef cookbook and Packer configuration to build Ruby on Rails project in Sudo, inherited from Pita project

This project contains two parts: Packer configuration and cookbook named Pizza.

For Pizza cookbook, please read this file.

Requirements

Two versions of Packer configuration file

File name Description
packer.json For generic use.
packer-ci.json For CI.

Usage

Install Dependencies

In the root directory of project.

$ cd pizza
$ gem install bundler
$ bundle

Prepare variables.json

In the root directory of project.

$ cp variables.json variables.local.json
$ $EDITOR variables.local.json

Run Tasks

We strongly recommend you to run tasks with rake.

Rake task Description
rake berks Download dependency cookbooks with Berkshelf.
rake base_ami Create base image to accelerate building process.
rake ami Create AMI with application.

All AMIs would be tagged with pizza in CreatedBy field.

License

MIT