Created
June 29, 2015 19:58
-
-
Save mgurov/3c296b6362879aa0cd20 to your computer and use it in GitHub Desktop.
Vagrantfile for docker in place of boot2docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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