xuzhenjun130 / boot2docker-vagrant-box

Packer scripts to build a Vagrant-compatible boot2docker box.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boot2docker-vagrant-box Circle CI

Introduction

Forked from dduportal/boot2docker-vagrant-box, thanks Damien !

My fork is a simpler version (no parallels support) with my personal touch.

This repository contains the scripts necessary to create a Vagrant compatible boot2docker box.

If you work solely with Docker, this box lets you keep your Vagrant workflow and work in the most minimal Docker environment possible.

Following docker stable versions

This project aims to follow mainly docker stable releases. Meaning that each docker release, especially test ones may not be published here.

For more information please check docker stable releases and time based release schedule.

Usage

The box is available on Hashicrop's Atlas, making it very easy to use it:

  • Download and include the proposed vagrant template in your project
  • Run your environment with vagrant up

If you want the actual box source file, you can download it from the release page.

Network considerations

By default, we use a NAT interfaces, which have its ports 2375 and 2376 (Docker IANA ports) forwarded to the loopback (localhost) of your physical host.

Customization

If you want to tune contents, you can see how to achieve this with something like vagrant template.

Building the Box

If you want to recreate the box, rather than using the binary, then you can use the scripts and Packer template within this repository to do so in seconds.

To build the box, first install the following prerequisites:

Then run this command to build the box for VirtualBox provider:

make virtualbox

About

Packer scripts to build a Vagrant-compatible boot2docker box.


Languages

Language:Shell 53.3%Language:Ruby 18.4%Language:Makefile 15.7%Language:M4 12.5%