-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandroid.json
More file actions
74 lines (74 loc) · 2.18 KB
/
android.json
File metadata and controls
74 lines (74 loc) · 2.18 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"variables": {
"cloud_token": "{{env `ATLAS_TOKEN`}}",
"version": "1.0.{{timestamp}}",
"codename": "zesty",
"arch": "amd64",
"disk_size": "40960",
"ndk_version": ""
},
"builders": [
{
"vnc_bind_address": "0.0.0.0",
"type": "qemu",
"iso_url": "http://archive.ubuntu.com/ubuntu/dists/{{user `codename`}}/main/installer-{{user `arch`}}/current/images/netboot/mini.iso",
"iso_checksum_type": "none",
"output_directory": "tmp/ubuntu-{{user `codename`}}-{{user `arch`}}-android-ndk-{{user `ndk_version`}}",
"shutdown_command": "shutdown -P now",
"shutdown_timeout": "10m",
"disk_size": "{{user `disk_size`}}",
"format": "qcow2",
"headless": true,
"accelerator": "kvm",
"http_directory": "http",
"http_port_min": 22300,
"http_port_max": 22399,
"ssh_host_port_min": 22200,
"ssh_host_port_max": 22299,
"vnc_port_min": 22400,
"vnc_port_max": 22499,
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "3h",
"vm_name": "android-ndk-{{user `ndk_version`}}",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_wait": "5s",
"boot_command": [
"<tab> net.ifnames=0 priority=critical auto=true hostname={{.Name}} url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<enter><wait>"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": false,
"vagrantfile_template": "include/Vagrantfile.in",
"output": "output/ubuntu-{{user `codename`}}-android-ndk-{{user `ndk_version`}}.box"
},
{
"type": "vagrant-cloud",
"box_tag": "Phoenix09/android-ndk-{{user `ndk_version`}}",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}"
}
]
],
"provisioners": [
{
"type": "shell",
"environment_vars": [
"NDK_VERSION={{user `ndk_version`}}"
],
"scripts": [
"scripts/vagrant.sh",
"scripts/update.sh",
"scripts/buildd.sh",
"scripts/android.sh",
"scripts/cleanup.sh"
]
}
]
}