Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
338396d1
Unverified
Commit
338396d1
authored
Feb 10, 2017
by
Stefan Scherer
Browse files
Build Windows 10 (insider) with Docker from VMX
parent
91fafbd5
Changes
3
Show whitespace changes
Inline
Side-by-side
build_windows_10_docker.sh
0 → 100755
View file @
338396d1
#!/bin/bash
# Windows 10 Insider 15031 + Docker 1.13.1
packer build
--only
=
vmware-vmx
--var
source_path
=
~/.vagrant.d/boxes/windows_10_insider_15031/0/vmware_desktop/packer-vmware-iso.vmx windows_10_docker.json
scripts/docker/install-containers-feature-windows10.ps1
0 → 100644
View file @
338396d1
# https://msdn.microsoft.com/de-de/virtualization/windowscontainers/quick_start/quick_start_windows_10
Enable-WindowsOptionalFeature
-Online
-FeatureName
containers
-All
-NoRestart
Enable-WindowsOptionalFeature
-Online
-FeatureName
Microsoft-Hyper-V
-All
-NoRestart
sc.exe
config
winrm
start
=
delayed-auto
windows_10_docker.json
0 → 100644
View file @
338396d1
{
"builders"
:
[
{
"type"
:
"vmware-vmx"
,
"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"
:
[
"./scripts/docker/install-containers-feature-windows10.ps1"
]
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/docker/enable-winrm.ps1"
,
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/install-docker.ps1"
,
"./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"
,
"./scripts/compact.bat"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_docker_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
}
],
"variables"
:
{
"source_path"
:
"~/.vagrant.d/boxes/windows_10/0/vmware_desktop/packer-vmware-iso.vmx"
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment