-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathVagrantfile
47 lines (35 loc) · 1.58 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
VM_HOSTNAME = "Tiny-Text-Adventure-Android-dev-environment"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.host_name = VM_HOSTNAME
# Boot with a GUI so you can see the screen. (Default is headless)
#This setting is no longer available from vagrant 1.1, use the provider specific setting
#config.vm.boot_mode = :gui
config.vm.provider "virtualbox" do |v|
v.name = VM_HOSTNAME
v.gui = true
end
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network :forwarded_port, guest: 5037, host: 5037, auto_correct: true # Android ADB port
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "vagrant/cookbooks"
chef.add_recipe "apt"
chef.add_recipe "git"
chef.add_recipe "build-essential"
chef.add_recipe "java"
chef.add_recipe "sqlite-dev"
chef.add_recipe "vim"
end
config.vm.provision "shell", inline: "echo Installing Android ADT bundle and NDK..."
config.vm.provision "shell", path: "vagrant/provision.sh"
config.vm.provision "shell", inline: "echo Installation complete"
end