Skip to content

Commit 4ec4354

Browse files
committed
Added option to set memory size for vagrant
1 parent f4d3d80 commit 4ec4354

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Vagrantfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
BOX_NAME = ENV["BOX_NAME"] || "raring"
55
BOX_URI = ENV["BOX_URI"] || "https://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
6+
BOX_MEMORY = ENV["BOX_MEMORY"] || "512"
67
DOKKU_DOMAIN = ENV["DOKKU_DOMAIN"] || "dokku.me"
78
DOKKU_IP = ENV["DOKKU_IP"] || "10.0.0.2"
89
PREBUILT_STACK_URL = File.exist?("#{File.dirname(__FILE__)}/stack.tgz") ? 'file:///root/dokku/stack.tgz' : nil
@@ -25,6 +26,7 @@ Vagrant::configure("2") do |config|
2526
# Ubuntu's Raring 64-bit cloud image is set to a 32-bit Ubuntu OS type by
2627
# default in Virtualbox and thus will not boot. Manually override that.
2728
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"]
29+
vb.customize ["modifyvm", :id, "--memory", BOX_MEMORY]
2830
end
2931

3032
config.vm.provision :shell, :inline => "apt-get -y install git && cd /root/dokku && #{make_cmd}"

0 commit comments

Comments
 (0)