Git Product home page Git Product logo

vagrant-digitalocean-docker's Introduction

vagrant-digitalocean-docker-cookbook

Cookbook for setting up Docker on Digital Ocean using Vagrant and Chef.

Supported Platforms

Tested using CentOS-6.5 on Digital Ocean.

Requirement

  • Vagrant
  • vagrant-digitalocean plugin
  • vagrant-omnibus plugin
  • Chef (using knife-solo mainly)
  • Berkshelf
  • Digital Ocean
  • get Client ID and API Key
  • register SSH key

Usage

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

Vagrantfile

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'

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Kuniaki Shimizu ([email protected])

vagrant-digitalocean-docker's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.