-
Notifications
You must be signed in to change notification settings - Fork 2
/
windows_2016_docker_azure.json
70 lines (69 loc) · 2.27 KB
/
windows_2016_docker_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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"builders": [
{
"capture_container_name": "images",
"capture_name_prefix": "WindowsServer2016Docker",
"client_id": "{{user `app_id`}}",
"client_secret": "{{user `client_secret`}}",
"cloud_environment_name": "Public",
"communicator": "winrm",
"image_offer": "WindowsServer",
"image_publisher": "MicrosoftWindowsServer",
"image_sku": "2016-Datacenter",
"image_version": "latest",
"location": "West Europe",
"object_id": "{{user `object_id`}}",
"os_type": "Windows",
"resource_group_name": "{{user `resource_group`}}",
"storage_account": "{{user `storage_account`}}",
"subscription_id": "{{user `azure_subscription_id`}}",
"tenant_id": "{{user `azure_ad_tenant_id`}}",
"type": "azure-arm",
"vm_size": "Standard_D2_v2",
"winrm_insecure": "true",
"winrm_timeout": "3m",
"winrm_use_ssl": "true",
"winrm_username": "packer"
}
],
"post-processors": [],
"provisioners": [
{
"scripts": [
"./scripts/docker/2016/install-containers-feature.ps1"
],
"type": "powershell"
},
{
"type": "windows-restart"
},
{
"environment_vars": [
"docker_images={{user `docker_images`}}",
"docker_provider={{user `docker_provider`}}",
"docker_version={{user `docker_version`}}"
],
"scripts": [
"./scripts/docker/add-docker-group.ps1",
"./scripts/docker/disable-windows-defender.ps1",
"./scripts/docker/install-docker.ps1",
"./scripts/docker/docker-pull.ps1",
"./scripts/docker/remove-docker-key-json.ps1"
],
"type": "powershell"
}
],
"variables": {
"app_id": "{{env `PACKER_AZURE_APP_ID`}}",
"azure_ad_tenant_id": "{{env `PACKER_AZURE_AD_TENANT_ID`}}",
"azure_subscription_id": "{{env `PACKER_AZURE_SUBSCRIPTION_ID`}}",
"client_secret": "{{env `PACKER_AZURE_CLIENT_SECRET`}}",
"docker_images": "mcr.microsoft.com/windows/servercore:ltsc2016",
"docker_provider": "DockerProvider",
"docker_version": "stable",
"headless": "false",
"object_id": "{{env `PACKER_AZURE_OBJECT_ID`}}",
"resource_group": "{{env `PACKER_AZURE_RESOURCE_GROUP`}}",
"storage_account": "{{env `PACKER_AZURE_STORAGE_ACCOUNT`}}"
}
}