diff --git a/Vagrantfile b/Vagrantfile index 18863fc521fc16f13ff5c58da79279786190e453..8a6993280be9a0e17c289001a4cce0ec5b193fc2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,11 +1,8 @@ VAGRANTFILE_API_VERSION = "2" -VM_IP = "10.10.10.10" - Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "ubuntu/zesty64" - config.vm.provision :shell, path: "bootstrap.sh", args: [VM_IP] - config.vm.network "private_network", ip: VM_IP + config.vm.box = "ubuntu/artful64" + config.vm.provision :shell, path: "bootstrap.sh" config.vm.synced_folder "./shared", "/mnt/shared" config.vm.provider "virtualbox" do |vb| diff --git a/bootstrap.sh b/bootstrap.sh index 433fff34ce753f700461d90750a0837d1be279d2..c8a81c5845cdb0a3e30bd2f18e506ad941698d29 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash -export HOST_IP=$1 +#----------------------------------------- +# Resize partition if needed to full size +#----------------------------------------- +sudo resize2fs /dev/sda1 #-------------------- # install packages @@ -80,4 +83,4 @@ git clone https://github.com/Syncleus/aparapi.git git clone https://github.com/Syncleus/aparapi-examples.git git clone https://github.com/Syncleus/aparapi-jni.git git clone --recursive https://github.com/Syncleus/aparapi-native.git -sudo chown -R ubuntu:ubuntu aparapi* +sudo chown -R vagrant:vagrant /home/vagrant/