Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (27 sloc) 1.36 KB
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "ubuntu/artful64"
# use vagrant-disksize plugin to resize partition -
config.disksize.size = '50GB'
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM
vb.memory = "2048"
# Share the root of the repo
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
config.vm.synced_folder ".", "/vagrant", disabled: true
# filesystem needs to be resized
config.vm.provision "shell", inline: "sudo resize2fs /dev/sda1"
# helpful before is run
config.vm.provision "shell", inline: "sudo apt-get update"
# Run provisioning scripts
config.vm.provision "shell", path: "./", privileged: false
config.vm.provision "shell", path: "./", privileged: false
# Fix permissions on the /data directory in order to allow the "vagrant" user to write to it
config.vm.provision "shell",
inline: "sudo chown -R vagrant /data"
# 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'."