8a0da1ad |
1 | # -*- mode: ruby -*- |
2 | # vi: set ft=ruby : |
3 | |
4 | Vagrant.configure("2") do |config| |
5 | |
852e83ab |
6 | config.vm.box = "ubuntu/zesty64" |
8a0da1ad |
7 | |
8 | config.vm.provider "virtualbox" do |vb| |
9 | # Customize the amount of memory on the VM |
10 | vb.memory = "2048" |
11 | end |
12 | |
13 | #Share the root of the repo |
14 | config.vm.synced_folder "../", "/termux-packages" |
15 | #Disable the default /vagrant share directory, as it shares the directory with the Vagrantfile in it, not the repo root |
16 | config.vm.synced_folder ".", "/vagrant", disabled: true |
17 | |
18 | |
19 | #Run provisioning scripts |
20 | config.vm.provision "shell", path: "./setup-ubuntu.sh", privileged: false |
21 | config.vm.provision "shell", path: "./setup-android-sdk.sh", privileged: false |
22 | |
23 | #Fix permissions on the /data directory in order to allow the "ubuntu" user to write to it |
24 | config.vm.provision "shell", |
25 | inline: "sudo chown -R ubuntu /data" |
26 | |
27 | #Tell the user how to use the VM |
28 | config.vm.post_up_message = "Box has been provisioned! Use 'vagrant ssh' to enter the box. The repository root is available under '/termux-packages'." |
29 | end |