Testing berkshelf + docker + packer combo
install packer + berkshelf
#berks vendor ./vendor-cookbooks
Using and development on Mac OS X
Install following packages
Homebrew installable packages
- docker
- boot2docker
- packer
ChefDK from opscode.com
Installing docker on Mac OS X
Run following commands to start small support vm for docker
Starting / creating docker container
There is a problem with using packer on Mac OS X. Where packer is not able to comunicate with docker VM running in boot2docker VM. To make it running use this simple commands. First we need to setup a root password in boot2docker vm docker/tcuser.
With root account password set
From packer output get description of volume definition for docker container, _/var/folders/yq/h9bmb6x1qxb7p4_w5xhkgx80000gn/T/packer-docker198944115.
Because of communication trouble packer will halt on installing chef step. To make it continue user needs to mount boot2docker vm directory /var/folders/yq/_h9bmb6x1qxb7p4_w5xhkgx80000gn/T/packer-docker198944115 to local machine.
After mounting fs packer command will continue to build machine and finish the build.