diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-07 15:56:40 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-07 16:01:37 +0000 |
commit | f4b10a38fdbd10bd4b1821565c222f66670d3fc5 (patch) | |
tree | 6642197fdbb979d3056ce109f08763099f8c23b5 | |
parent | 233779b56b4cb4fdcf0aa795680f12500d0f94e9 (diff) |
Enable configurable VirtualBox memory
-rw-r--r-- | config/Vagrantfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/Vagrantfile b/config/Vagrantfile index 78facfd38..6932374e9 100644 --- a/config/Vagrantfile +++ b/config/Vagrantfile @@ -9,6 +9,7 @@ # VAGRANTFILE_API_VERSION = "2" ALAVETELI_FQDN = ENV['ALAVETELI_VAGRANT_FQDN'] || "alaveteli.10.10.10.30.xip.io" +ALAVETELI_MEMORY = ENV['ALAVETELI_VAGRANT_MEMORY'] || 1536 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "precise64" @@ -18,7 +19,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # The bundle install fails unless you have quite a large amount of # memory; insist on 1.5GiB: config.vm.provider "virtualbox" do |vb| - vb.customize ["modifyvm", :id, "--memory", 1536] + vb.customize ["modifyvm", :id, "--memory", ALAVETELI_MEMORY] end # Fetch and run the install script: |