Last active
October 12, 2015 06:39
-
-
Save yuchan/eff6f050a1b99a6497a9 to your computer and use it in GitHub Desktop.
My Base Vagrantfile
This file contains 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
.vagrant |
This file contains 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 : | |
$script = <<SCRIPT | |
curl -L https://github.com/docker/compose/releases/download/1.4.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
SCRIPT | |
Vagrant.configure(2) do |config| | |
config.vm.box = 'phusion/ubuntu-14.04-amd64' | |
config.vm.provision 'docker' | |
config.vm.provision 'shell', inline: $script | |
config.vm.synced_folder 'src/', '/src/' | |
config.vm.synced_folder '.', '/vagrant', disabled: true | |
config.vm.network 'forwarded_port', guest: 3000, host: 3000 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment