Containers - Light weight virtualization - software based virtualization - userspace entity in mainline linux kernel (lxc) - built using kernel's containment facility
Extending lxc - use template & download to build them - use config api to add run time configuration - build additional tools using any of the bindings - bindings: python, lua, ruby, Go.
Extending lxc - more complex example: #!/usr/bin/ruby require 'chef/lxc' lxc "web" do template "ubuntu" recipe do package "apache2" service "apache2" do action [:start, :enable] end end action [:create, :start] end