Modify python formatting
[termux-packages] / scripts / Vagrantfile
CommitLineData
8a0da1ad 1# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4Vagrant.configure("2") do |config|
5
1c546636 6 config.vm.box = "ubuntu/artful64"
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
1c546636 13 # Share the root of the repo
8a0da1ad 14 config.vm.synced_folder "../", "/termux-packages"
1c546636 15 # Disable the default /vagrant share directory, as it shares the directory with the Vagrantfile in it, not the repo root
8a0da1ad 16 config.vm.synced_folder ".", "/vagrant", disabled: true
17
18
1c546636 19 # Run provisioning scripts
8a0da1ad 20 config.vm.provision "shell", path: "./setup-ubuntu.sh", privileged: false
21 config.vm.provision "shell", path: "./setup-android-sdk.sh", privileged: false
22
1c546636 23 # Fix permissions on the /data directory in order to allow the "ubuntu" user to write to it
8a0da1ad 24 config.vm.provision "shell",
25 inline: "sudo chown -R ubuntu /data"
26
1c546636 27 # Tell the user how to use the VM
8a0da1ad 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'."
29end