forked from ARM-software/lisa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
48 lines (39 loc) · 1.86 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
# Compiling pandas requires 1Gb of memory
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
# Forward ipython notebook's port to the host
config.vm.network "forwarded_port", guest: 8888, host: 8888
config.vm.provision "shell", inline: <<-SHELL
set -e
if [ ! -e /home/vagrant/lisa ]; then
ln -s /vagrant /home/vagrant/lisa
fi
cd /home/vagrant/lisa
./install_base_ubuntu.sh --install-android-sdk
chown vagrant.vagrant /home/vagrant/lisa
echo cd /home/vagrant/lisa >> /home/vagrant/.bashrc
for LC in $(locale | cut -d= -f1);
do
echo unset $LC >> /home/vagrant/.bashrc
done
echo "export ANDROID_HOME=/vagrant/tools/android-sdk-linux" >> /home/vagrant/.bashrc
echo 'export PATH=\$ANDROID_HOME/platform-tools:\$ANDROID_HOME/tools:\$PATH' >> /home/vagrant/.bashrc
echo source init_env >> /home/vagrant/.bashrc
echo "Virtual Machine Installation completed successfully! "
echo " "
echo "You can now access and use the virtual machine by running: "
echo " "
echo " $ vagrant ssh "
echo " "
echo "NOTE: if you exit, the virtual machine is still running. To shut it "
echo " down, please run: "
echo " "
echo " $ vagrant suspend "
echo " "
SHELL
end