[chef] Re: Re: Re: Cookbook testing with Vagrant/LXC


Chronological Thread 
  • From: Juanje Ojeda Croissier < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: Cookbook testing with Vagrant/LXC
  • Date: Mon, 30 Sep 2013 23:53:05 +0100

I've been using Vagrant + LXC vía LXC provider[1] for months and it's really great and waaay faster than with Virtualbox. It has improven a lot my workflow and feedback loop.

Right now, there are boxes just for 64bits[2], but its really easy to built your own box with the scripts providers by the project:
https://github.com/fgrehm/vagrant-lxc/blob/master/BOXES.md

BTW, I'm currently using Vagrant + vagrant-lxc on Ubuntu 12.04 on two laptops, one with 32bits and other with 64bits.


On Tue, Sep 24, 2013 at 2:48 PM, Pete Cheslock < " target="_blank"> > wrote:
We've been using kitchen-docker and test kitchen on our local and CI systems for cookbook testing.  So far it's been working well for our use case.  



On Tue, Sep 24, 2013 at 3:32 AM, Jesse Nelson < " target="_blank"> > wrote:
I've been using kitchen-lxc for Cook testing for quite some time using Ubuntu 12.04 as the "host". I used base templates to build Ubuntu templates. I used this template for CentOS iirc.  https://gist.github.com/hagix9/3514296

There is a lxc cookbook from heavy water ops that will build containers for u as well here: 

There is also a kitchen-docker driver I haven't tried but might be a bit easier to get up and running with docker if u haven't played with lxc yet.  

For muti-vm testing I've been using vagabond which is also Lxc backed and uses the lxc cookbook to magic up containers. I haven't used vagrant-lxc, but imagine u will have to spin containers for it as well. 

Tl;dr. Go read up on using lxc tools to make containers. There are templates to make it easy.  The hw lxc cookbook makes it easier.  My best successes have been using Ubuntu 12.04. 



Hi everyone,

Has anyone tried to do cookbook testing with Vagrant and LXC? I have been using
Vagrant/VirtualBox for awhile now for my cookbook testing but all of our CI
boxes are VMs which means VirtualBox won't work. LXC seems like a good answer
but seems like it might be a bit harder to use. It also seems like the bento
project doesn't support building LXC boxes and doing them manually doesn't seem
terribly easy. Any resources or suggestions would be great.




--
Juanje

http://about.me/juanje



Archive powered by MHonArc 2.6.16.

§