~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Vagrantfile tweaks
[termux-packages]
/
scripts
/
Vagrantfile
diff --git
a/scripts/Vagrantfile
b/scripts/Vagrantfile
index
77915c9
..
c9a9ed9
100644
(file)
--- a/
scripts/Vagrantfile
+++ b/
scripts/Vagrantfile
@@
-3,27
+3,35
@@
Vagrant.configure("2") do |config|
Vagrant.configure("2") do |config|
- config.vm.box = "ubuntu/
xenia
l64"
+ config.vm.box = "ubuntu/
artfu
l64"
+ # use vagrant-disksize plugin to resize partition - https://github.com/sprotheroe/vagrant-disksize
+ config.disksize.size = '50GB'
+
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM
vb.memory = "2048"
end
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM
vb.memory = "2048"
end
- #Share the root of the repo
+ #
Share the root of the repo
config.vm.synced_folder "../", "/termux-packages"
config.vm.synced_folder "../", "/termux-packages"
- #Disable the default /vagrant share directory, as it shares the directory with the Vagrantfile in it, not the repo root
+ #
Disable the default /vagrant share directory, as it shares the directory with the Vagrantfile in it, not the repo root
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/vagrant", disabled: true
+ # filesystem needs to be resized
+ config.vm.provision "shell", inline: "sudo resize2fs /dev/sda1"
+
+ # helpful before setup-ubuntu.sh is run
+ config.vm.provision "shell", inline: "sudo apt-get update"
- #Run provisioning scripts
+ #
Run provisioning scripts
config.vm.provision "shell", path: "./setup-ubuntu.sh", privileged: false
config.vm.provision "shell", path: "./setup-android-sdk.sh", privileged: false
config.vm.provision "shell", path: "./setup-ubuntu.sh", privileged: false
config.vm.provision "shell", path: "./setup-android-sdk.sh", privileged: false
- #
Fix permissions on the /data directory in order to allow the "ubuntu
" user to write to it
+ #
Fix permissions on the /data directory in order to allow the "vagrant
" user to write to it
config.vm.provision "shell",
config.vm.provision "shell",
- inline: "sudo chown -R
ubuntu
/data"
+ inline: "sudo chown -R
vagrant
/data"
- #Tell the user how to use the VM
+ #
Tell the user how to use the VM
config.vm.post_up_message = "Box has been provisioned! Use 'vagrant ssh' to enter the box. The repository root is available under '/termux-packages'."
end
config.vm.post_up_message = "Box has been provisioned! Use 'vagrant ssh' to enter the box. The repository root is available under '/termux-packages'."
end