Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GPII-4195] Add 1909 and LTSC Windows 10 version to Vagrantfile #192

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,21 @@ ram = ENV["VM_RAM"] || 2048

Vagrant.configure(2) do |config|

config.vm.box = "inclusivedesign/windows10-eval-x64-Apps"
config.vm.guest = :windows

config.vm.communicator = "winrm"
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct:true
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "rdp", auto_correct:true

config.vm.provider :virtualbox do |vm|
vm.gui = true
vm.customize ["modifyvm", :id, "--memory", ram]
vm.customize ["modifyvm", :id, "--cpus", cpus]
vm.customize ["modifyvm", :id, "--vram", "256"]
vm.customize ["modifyvm", :id, "--accelerate3d", "off"]
vm.customize ["modifyvm", :id, "--audio", "null", "--audiocontroller", "hda"]
vm.customize ["modifyvm", :id, "--ioapic", "on"]
vm.customize ["setextradata", "global", "GUI/SuppressMessages", "all"]
["LTSC", "1909"].each do |flavour|
config.vm.define "#{flavour}" do |latest|
latest.vm.box = "gpii-ops/windows10-#{flavour}-eval-x64-universal"
latest.vm.provider :virtualbox do |vm|
vm.gui = true
vm.linked_clone = true
vm.customize ["modifyvm", :id, "--memory", ram]
vm.customize ["modifyvm", :id, "--cpus", cpus]
vm.customize ["modifyvm", :id, "--vram", "256"]
vm.customize ["modifyvm", :id, "--accelerate3d", "off"]
vm.customize ["modifyvm", :id, "--audio", "null", "--audiocontroller", "hda"]
vm.customize ["modifyvm", :id, "--ioapic", "on"]
vm.customize ["setextradata", "global", "GUI/SuppressMessages", "all"]
end
end
end

config.vm.provision "shell", path: "provisioning/Build.ps1", args: "-originalBuildScriptPath \"C:\\vagrant\\provisioning\\\""
Expand Down
4 changes: 2 additions & 2 deletions provisioning/Installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $node = Get-Command "node.exe" | Select -expandproperty Path
$chocolatey = "$env:ChocolateyInstall\bin\choco.exe" -f $env:SystemDrive

# Installing required choco packages.
Invoke-Command $chocolatey "install wixtoolset -y"
Invoke-Command $chocolatey "install wixtoolset --no-progress -y"
refreshenv
# The path to WIX can be found in $env:WIX env variable but looks like chocolatey's refreshenv
# is not able to set such variable in this session. As a workaround, we ask the registry
Expand All @@ -34,7 +34,7 @@ $wixSetupPath = Join-Path (Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Cont
Add-Path $wixSetupPath $true
refreshenv

Invoke-Command $chocolatey "install msbuild.extensionpack -y"
Invoke-Command $chocolatey "install msbuild.extensionpack --no-progress -y"
refreshenv

# If $installerDir exists delete it and clone current branch of installer.
Expand Down