-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer-docker.json
38 lines (38 loc) · 1.31 KB
/
packer-docker.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
{
"variables": {
"client_id": "{{env `TF_VAR_arm_client_id`}}",
"client_secret": "{{env `TF_VAR_arm_client_secret`}}",
"subscription_id": "{{env `TF_VAR_arm_subscription_id`}}"
},
"builders": [
{
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"os_type": "Linux",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "18.04-LTS",
"managed_image_resource_group_name": "eespinoza-devopstest-images",
"managed_image_name": "ubuntusrv-docker-api-image",
"location": "East US",
"vm_size": "Standard_B1s"
}
],
"provisioners": [
{
"type": "chef-solo",
"cookbook_paths": ["cookbooks"],
"run_list": ["apt", "docker", "api", "api::docker"]
},
{
"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"
}
]
}