Boran / docker-test

Setup a local VM for docker/docker-compose testing (on a mac with Vagrant)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A quick way to setup a docker test environment. This tool

  • Creates a VM with the Ubuntu 14.04 (hashcorp/trusty box)
  • Pulls the latest docker release, fixes a few permissions and installs docker-compose.
  • Optional: Pulls a small example container (alpine linux)

Features

  • Tested on: Mac 10.10 +Virtualbox 4.3.30 +Vagrant 1.7.4 Windows 8 +Virtual 4.3.8 + Vagrant 1.7.2
  • Works with outgoing proxies

Why

  • This pattern is small, simple and easy to duplicate into other projects.
  • Reason: docker-machine was a bit too complex and didn't work for me. Boot2docker is no longer supported.

Requirements

  • Vagrant, virtualbox
  • If proxies are needed the http_proxy environment variable is set and vagrant-proxyconf module is installed.
vagrant plugin install vagrant-proxyconf

USAGE

vagrant up
vagrant ssh

# play with docker:
docker images
docker run --rm -it alpine sh

# /vagrant gives accces to the host folder
ls /vagrant

TODO

. Use a more lightweight base image than Ubuntu 14.04 . Mount/copy over default .bashrc from the host

About

Setup a local VM for docker/docker-compose testing (on a mac with Vagrant)


Languages

Language:Shell 100.0%