tdd on Vagrant with Serverspec + Docker
Mac --> ssh --> Vagrant(ubuntu) --> docker exec by serverspec --> docker-container
- base
- simple Ubuntu Image
- jruby
- include jruby-1.7.16 and rbenv on sgykfjsm/base_ubuntu
- nginx_php
- include nginx + php5-fpm on sgykfjsm/php5fpm
- nginx_simple
- include nginx on sgykfjsm/base
- norikra
- include norikra on sgykfjsm/jruby
- openrestry
- include openresty on sgykfjsm/base_ubuntu
- php5fpm
- include php5-fpm on sgykfjsm/base_ubuntu
- ruby
- include ruby 2.1.4 on sgykfjsm/base_ubuntu
- td-agent
- include td-agent on sgykfjsm/base_ubuntu
rvm seppuku
rm -rf ~./rvm ~/.rmv
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
brew doctor
brew update && brew upgrade
brew install rbenv ruby-build rbenv-gemset rbenv-gem-rehash readline apple-gcc42
rm -rf ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.1.4
rbenv rehash
rbenv global 2.1.4
gem install serverspec
gem install docker-api
- Download & Install VitualBox
- Download & Install Vagrant
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-cachier
- Check Official Latest Stable ubuntu box &&
vagrant box add {title} {box-url}
- Clone this repo.
- Change
config.vm.box_url
to your box-path in ${repo_path}/Vagrantfile vagrant up
- If
vagrant up
is OK, logout vagrant andserverspec-init
- execute testing:
bash ${repo-path}/do_spec