-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-azure.json
52 lines (47 loc) · 1.58 KB
/
build-azure.json
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
{
"variables":{
"image_name":"{{env `IMAGE_NAME`}}",
"image_resource_group_name":"{{env `AZURE_IMAGE_RESOURCE_GROUP_NAME`}}",
"arm_client_id":"{{env `AZURE_CLIENT_ID`}}",
"arm_client_secret":"{{env `AZURE_CLIENT_SECRET`}}",
"arm_subscription_id":"{{env `AZURE_SUBSCRIPTION_ID`}}",
"arm_tenant_id":"{{env `AZURE_TENANT_ID`}}"
},
"builders":[
{
"type": "azure-arm",
"client_id": "{{user `arm_client_id`}}",
"client_secret": "{{user `arm_client_secret`}}",
"subscription_id": "{{user `arm_subscription_id`}}",
"tenant_id": "{{user `arm_tenant_id`}}",
"location": "West Europe",
"vm_size": "Standard_D2_v2",
"capture_container_name": "{{user `image_name`}}",
"capture_name_prefix": "kubenow",
"resource_group_name": "{{user `image_resource_group_name`}}",
"storage_account": "kubenow",
"os_type": "Linux",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "16.04-LTS",
"image_version": "16.04.201701130",
"azure_tags": {
"project": "kubenow"
}
}
],
"provisioners":[
{
"type":"shell",
"script":"{{pwd}}/requirements.sh"
},
{
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
"inline": [
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}
]
}