Cookbook for setting up Docker on Digital Ocean using Vagrant and Chef.
Tested using CentOS-6.5 on Digital Ocean.
- Vagrant
- vagrant-digitalocean plugin
- vagrant-omnibus plugin
- Chef (using knife-solo mainly)
- Berkshelf
- Digital Ocean
- get Client ID and API Key
- register SSH key
git clone https://github.com/kun432/vagrant-digitalocean-docker.git
cd vagrant-digitalocean-docker
cp Vagrantfile.template Vagrantfile
vi Vagrantfile
berks vendor cookbooks
vagrant up --provider="digital_ocean"
I don't know why but, after your VM is booted, docker-CLI can't access docker-daemon. You must restart docker-daemon once.
vagrant ssh
service docker restart
Edit following param for your environment:
provider.client_id = 'YOUR_CLIENT_ID'
provider.api_key = 'YOUR_API_KEY'
provider.ssh_key_name = 'YOUR_SSH_KEY_NAME'
override.ssh.private_key_path = 'YOUR_SSH_KEY_PATH'
provider.image = 'CentOS 6.5 x64'
provider.region = 'Singapore 1'
provider.size = '512MB'
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Kuniaki Shimizu ([email protected])