Skip to content

Commit

Permalink
Auto adjust RAM amount when building a VM
Browse files Browse the repository at this point in the history
  • Loading branch information
jiru committed Apr 13, 2021
1 parent b0eeda7 commit 5cd2556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ cd imouto

- If you need to use a proxy, follow the instructions in `README.proxy.md`.

- Edit the file `Vagrantfile` to raise the value of `v.memory` to `1024`.

- Run these commands to install everything. Please be patient, it takes a while for vagrant to download the ~300MB box on your machine and then to provision it using ansible.

```bash
Expand Down
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
# Here you can adjust RAM allocated to the VM:
v.memory = 512 # in MB

# This one is when we build a new VM with "BUILD=1 vagrant up"
v.memory = 1024 if ENV['BUILD'] == '1'
end

if ENV['BUILD'] == '1'
Expand Down

0 comments on commit 5cd2556

Please sign in to comment.