Commit 4a2d2f56 authored by Stefan Scherer's avatar Stefan Scherer

Build windows_2016_docker with VirtualBox

parent 3b0001fa
......@@ -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
......
......@@ -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
......@@ -42,7 +42,7 @@
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": false,
"boot_wait": "6m",
"boot_wait": "7m",
"boot_command": [ "{{user `product_key`}}<enter>" ],
"winrm_username": "vagrant",
"winrm_password": "vagrant",
......
......@@ -43,7 +43,7 @@
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": false,
"boot_wait": "6m",
"boot_wait": "7m",
"boot_command": [ "{{user `product_key`}}<enter>" ],
"winrm_username": "vagrant",
"winrm_password": "vagrant",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment