Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
4a2d2f56
Commit
4a2d2f56
authored
Feb 21, 2016
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build windows_2016_docker with VirtualBox
parent
3b0001fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
+19
-7
scripts/docker/enable-winrm.ps1
scripts/docker/enable-winrm.ps1
+7
-3
scripts/install-docker.ps1
scripts/install-docker.ps1
+10
-2
windows_2016.json
windows_2016.json
+1
-1
windows_2016_docker.json
windows_2016_docker.json
+1
-1
No files found.
scripts/docker/enable-winrm.ps1
View file @
4a2d2f56
...
...
@@ -12,9 +12,13 @@ winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}'
Write-Host
"Install Containers"
Install-WindowsFeature
-Name
Containers
Write-Host
"Install Hyper-V"
Install-WindowsFeature
-Name
Hyper-V
Install-WindowsFeature
Hyper-V-Tools
if
(
Test-Path
a:\oracle-cert.cer
)
{
Write-Host
"Skipping installation of Hyper-V in VirtualBox basebox"
}
else
{
Write-Host
"Install Hyper-V"
Install-WindowsFeature
-Name
Hyper-V
Install-WindowsFeature
Hyper-V-Tools
}
Stop-Service
winrm
.
sc.exe
config
winrm
start
=
delayed-auto
...
...
scripts/install-docker.ps1
View file @
4a2d2f56
...
...
@@ -79,14 +79,22 @@ function Run-Interactive {
&
schtasks
/Delete
/F
/TN
InstallContainerHost
}
if
(
Test-Path
a:\oracle-cert.cer
)
{
Write-Host
"Skip installation of Hyper-V on VirtualBox Container Host"
$installOptions
=
""
}
else
{
Write-Host
"Add installation of Hyper-V on Container Host"
$installOptions
=
"-HyperV"
}
# Download latest nightly build of docker engine
$wantNightlyDocker
=
$false
if
(
$wantNightlyDocker
)
{
$ExeFile
=
"C:\Users\vagrant\Downloads\docker.exe"
wget
-o
$ExeFile
https://master.dockerproject.org/windows/amd64/docker.exe
Run-Interactive
-commandline
"C:\Install-ContainerHost.ps1
-HyperV
-DockerPath
$ExeFile
"
Run-Interactive
-commandline
"C:\Install-ContainerHost.ps1
$installOptions
-DockerPath
$ExeFile
"
}
else
{
Run-Interactive
-commandline
"C:\Install-ContainerHost.ps1
-HyperV
"
Run-Interactive
-commandline
"C:\Install-ContainerHost.ps1
$installOptions
"
}
# https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/manage_docker
windows_2016.json
View file @
4a2d2f56
...
...
@@ -42,7 +42,7 @@
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
false
,
"boot_wait"
:
"
6
m"
,
"boot_wait"
:
"
7
m"
,
"boot_command"
:
[
"{{user `product_key`}}<enter>"
],
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
...
...
windows_2016_docker.json
View file @
4a2d2f56
...
...
@@ -43,7 +43,7 @@
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
false
,
"boot_wait"
:
"
6
m"
,
"boot_wait"
:
"
7
m"
,
"boot_command"
:
[
"{{user `product_key`}}<enter>"
],
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
...
...
Write
Preview
Markdown
is supported
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