Giter Site home page Giter Site logo

vagrant-docker's Introduction

vagrant-docker

Use docker instead of a VM (i.e., virtualbox) in Vagrant as a provider to save system resources (and be more fashionable!)

Use this sample code to build your own boxes.

Read latest presentation about this project: https://github.com/npoggi/vagrant-docker/blob/master/presentation/NPoggi_Vagrant-Docker.pdf?raw=true

Fork, and send your pull requests!

The image is currently based on Ubuntu:12.04 It features Puppet [Chef is optional] and a sample NginX web Server

###Simple usage: #####Builds your own docker image from the Dockerfile cd vagrant-docker

sudo vagrant up

###Test: Navigate to: http://localhost:8080/

###Advanced usage: #####Select your image in a ENV var

#####For a vanilla image built using the same docker file:

DOCKER_IMAGE='npoggi/vagrant-docker' sudo vagrant up --provision

#####For a pre-provisioned image with the puppet config (saves time)

DOCKER_IMAGE='npoggi/vagrant-docker-provisioned' sudo vagrant up --provision

###Notes: In case you switch images do a vagrant provision (or vagrant up --provision) instead of just vagrant up. As docker by default stops services if not specified in the Dockerfile. Puppet as the provisioner with make sure they are UP!

Originally presented at the Docker meetup in Barcelona: http://www.meetup.com/docker-barcelona-spain/events/193336922/

vagrant-docker's People

Contributors

npoggi avatar

Watchers

 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.