windows_10_docker.json 1.71 KB
Newer Older
1
2
3
4
{
  "builders": [
    {
      "type": "vmware-vmx",
5
      "vm_name": "windows_10_docker",
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
      "communicator": "winrm",
      "source_path": "{{user `source_path`}}",
      "headless": false,
      "boot_wait": "5s",
      "boot_command": "",
      "winrm_username": "vagrant",
      "winrm_password": "vagrant",
      "winrm_timeout": "15m",
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "vnc_port_min": 5900,
      "vnc_port_max": 5980,
      "vmx_data": {
        "RemoteDisplay.vnc.enabled": "false",
        "RemoteDisplay.vnc.port": "5900",
        "memsize": "2048",
        "numvcpus": "2",
        "scsi0.virtualDev": "lsisas1068"
      }
    }
  ],
  "provisioners": [
    {
      "type": "powershell",
      "scripts": [
30
        "./scripts/docker/10/install-containers-feature.ps1"
31
32
33
34
35
36
37
38
39
      ]
    },
    {
      "type": "windows-restart"
    },
    {
      "type": "powershell",
      "scripts": [
        "./scripts/docker/add-docker-group.ps1",
40
        "./scripts/docker/10/install-docker.ps1",
41
42
43
44
45
46
47
48
49
50
        "./scripts/docker/docker-pull-async.ps1",
        "./scripts/docker/open-docker-insecure-port.ps1",
        "./scripts/docker/remove-docker-key-json.ps1",
        "./scripts/docker/disable-windows-defender.ps1"
      ]
    },
    {
      "type": "windows-shell",
      "scripts": [
        "./scripts/uac-enable.bat",
51
        "./scripts/set-winrm-automatic.bat",
52
53
54
55
56
57
58
59
60
61
62
63
64
        "./scripts/compact.bat"
      ]
    }
  ],
  "post-processors": [
    {
      "type": "vagrant",
      "keep_input_artifact": false,
      "output": "windows_10_docker_{{.Provider}}.box",
      "vagrantfile_template": "vagrantfile-windows_10.template"
    }
  ],
  "variables": {
Stefan Scherer's avatar
Stefan Scherer committed
65
    "source_path": "path-to.vmx"
66
67
  }
}