Skip to content

Instantly share code, notes, and snippets.

@mgurov
Created June 29, 2015 19:58
Show Gist options
  • Save mgurov/3c296b6362879aa0cd20 to your computer and use it in GitHub Desktop.
Save mgurov/3c296b6362879aa0cd20 to your computer and use it in GitHub Desktop.
Vagrantfile for docker in place of boot2docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision "docker"
#by default we'll claim ports 9080-9090 on the host system
for i in 9080..9090
config.vm.network :forwarded_port, guest: i, host: i
end
config.vm.provision "shell", inline: $provisionScript
config.vm.synced_folder "~/work", "/home/vagrant/work"
end
$provisionScript = <<SCRIPT
sudo apt-get install -y make
SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment