A simple Vagrant and Ansible project to stand up a Docker
development environment. Includes docker-compose
. The box is based on
Debian Jessie because it's free and awesome.
You can also use this to learn a little bit about Vagrant and Ansible.
Make sure you've installed Vagrant.
From the project directory, containing the Vagrantfile
, run:
vagrant up
wait a bit. (It can take a while to update Debian, install Docker, etc.) For example:
$ time vagrant up
...
real 22m47.561s
user 0m44.163s
sys 0m4.643s
Then:
vagrant ssh
From the Vagrant box:
docker -v
use docker for great justice!
There is a standard, simple, and commented set of Ansible files in the
provisioning
directory.
Tested using the following versions
Vagrant | Virtual Box | Vagrant Plugins |
---|---|---|
2.0.2 | 5.2.6 r120293 (Qt5.9.1) | vagrant-cachier (1.2.1), vagrant-vbguest (0.15.1) |