Git Product home page Git Product logo

docker-enabled-vagrant's Introduction

Docker-enabled Vagrant boxes

Purpose

Some Linux distributions don't have a pre-installed Docker engine. Public Vagrant boxes (e.g., those in Atlas and Vagrantbox.es) also lack quality support for Docker. So I build these Vagrant boxes to aid my Docker development.

I also install some handy tools for Docker.

For the impatient

Use the following public box names (all available from Atlas service):

Included software

Build these boxes yourself

Here are steps you can follow to build these boxes on your own.

First, install the Packer tool on your host machine.

Second, pull the Bento submodule:

# pull the Bento project
git submodule init

# copy Bento stuff to sub-directories
# since Packer doesn't push soft links to Atlas (defects!)...
./copy-bento.sh

Third, choose the box directory of your choice:

# change working directory to any specific OS;
# for example, "ubuntu-trusty"
cd ubuntu-trusty

Now, you can either generate the Vagrant box file on your machine:

# build `ubuntu-trusty64-docker`:
packer build ubuntu-trusty64-docker.json


# build `ubuntu-trusty64-docker`, VirtualBox version only:
packer build -only=virtualbox-iso  \
       ubuntu-trusty64-docker.json


# build `ubuntu-trusty64-docker`, VirtualBox version only,
# with pre-downloaded ISO file from `file:///Volumes/ISO/`:
packer build -only=virtualbox-iso  \
       -var 'mirror=file:///Volumes/ISO/'  \
       ubuntu-trusty64-docker.json

you'll get an 'XXX.box' file in the builds directory, if successful.

Or, you can delegate the building and hosting tasks to Atlas:

# make sure the following environment variables are set:
#   ATLAS_TOKEN
#   ATLAS_USERNAME
packer push ubuntu-trusty64-docker.json

Alternatives

Some nice alternatives you may try:

License

Licensed under MIT license.

Copyright © 2014-2016 William Yeh - https://github.com/William-Yeh.

docker-enabled-vagrant's People

Contributors

william-yeh 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.