forked from gratipay/gratipay.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
30 lines (24 loc) · 1.19 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
#For now we have a custom built vagrant image. It was built in the following manner:
#-Use 'precise64' as a base.
#-perform a 'vagrant up' using this vagrantfile: https://github.com/gittip/www.gittip.com/blob/83312e60c6b31c298ffca61036baa9849044c75e/Vagrantfile
#-drop database gittip
#-drop role gittip
config.vm.box = "gittip"
config.vm.box_url = File.exist?("gittip.box") ? "file://gittip.box" : "http://downloads.gittipllc.netdna-cdn.com/gittip.box"
# Sync the project directory and expose the app
config.vm.network "private_network", ip: "172.27.36.119"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.network :forwarded_port, guest: 8537, host: 8537
# TODO: Pin apt-get packages to the same versions Heroku uses
# Installed dependencies are already part of the base image now
config.vm.provision :shell,
:path => "scripts/vagrant-setup.sh"
end