Skip to content

A prototype for building your own container images using Chef

Notifications You must be signed in to change notification settings

scrutinizer-ci/chef-container-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chef Container Prototype

This repository contains a prototype for building a custom image using Chef recipes.

Installation

Make sure that you have chef and vagrant installed locally:

Chef provides us several short cuts for downloading and generating cookbooks through knife, and vagrant allows us to test our changes locally before triggering a build on Scrutinizer.

Now that you have installed all dependencies, simply clone this repository:

git clone git://github.com/scrutinizer/chef-container-prototype my-container
git remote set-url origin [email protected]:your-login/my-container.git

Add the new repository on Scrutinizer and push your changes to your repository:

git push -u origin master

You should now see a first build of your container being triggered on Scrutinizer.

Building Container Locally

During development, you typically iterate on your recipes locally before committing your changes and triggering a build on Scrutinizer. If you installed vagrant, you can just run

vagrant up

This will fetch the base image and run your chef recipes. If your box is already running, you can instead run

vagrant provision

Further Resources

About

A prototype for building your own container images using Chef

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages