6
6
# packer build . | tee output.out 2>&1
7
7
region = " us-west-2"
8
8
instance_type = " t2.xlarge"
9
- root_volume_size_gb = 70
9
+ # 2024-09 size was 70. Add 10 for the jobs, and 10 for the pagefile.
10
+ root_volume_size_gb = 90
10
11
ssh_keypair_name = " cppalliance-us-west-2-kp"
11
12
ssh_private_key_file = " /root/.ssh/cppalliance-us-west-2-kp.pem"
12
13
@@ -49,7 +50,7 @@ custom_shell_commands = [
49
50
" # choco install -y KB2999226 --version 1.0.20181019" ,
50
51
" # choco install -y KB3033929 --version 1.0.5" ,
51
52
" # choco install -y KB3035131 --version 1.0.3" ,
52
- " choco install -y llvm --version 16.0.3 " ,
53
+ " choco install -y llvm --version 18.1.8 " ,
53
54
" choco install -y microsoft-build-tools --version 15.0.26320.2" ,
54
55
" choco install -y mingw --version 12.2.0.03042023" ,
55
56
" # no:" ,
@@ -81,7 +82,9 @@ custom_shell_commands = [
81
82
" # visualstudio2022-workload-vctools failed last time. Add a sleep command." ,
82
83
" Start-Sleep -Seconds 10" ,
83
84
" # This should be rewritten with fewer quotes, group all together." ,
84
- " choco upgrade visualstudio2022-workload-vctools --package-parameters \" --add Microsoft.VisualStudio.Component.VC.14.34.17.4.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.v141.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.140\" -y " ,
85
+ " # one previous version" ,
86
+ " # choco upgrade visualstudio2022-workload-vctools --package-parameters \" --add Microsoft.VisualStudio.Component.VC.14.34.17.4.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.v141.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.140\" -y " ,
87
+ " choco upgrade visualstudio2022-workload-vctools --package-parameters \" --add Microsoft.VisualStudio.Component.VC.14.41.17.11.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.v141.x86.x64\" \" --add Microsoft.VisualStudio.Component.VC.140\" -y " ,
85
88
" $${oldpath} = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\ System\\ CurrentControlSet\\ Control\\ Session Manager\\ Environment' -Name PATH).path" ,
86
89
" $${newpath} = \" C:\\ Git\\ usr\\ bin;$${oldpath}\" " ,
87
90
" Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\ System\\ CurrentControlSet\\ Control\\ Session Manager\\ Environment' -Name PATH -Value $${newPath}" ,
@@ -92,5 +95,15 @@ custom_shell_commands = [
92
95
" net user /add Administrator2 Testwin1234!" ,
93
96
" net localgroup administrators Administrator2 /add" ,
94
97
" Set-LocalUser -Name 'Administrator2' -PasswordNeverExpires 1" ,
98
+
99
+ " # Set page file" ,
100
+ " $ComputerSystem = Get-WmiObject -ClassName Win32_ComputerSystem" ,
101
+ " $ComputerSystem.AutomaticManagedPagefile = $false" ,
102
+ " $ComputerSystem.Put()" ,
103
+ " $PageFileSetting = Get-WmiObject -ClassName Win32_PageFileSetting" ,
104
+ " $PageFileSetting.InitialSize = 10000" ,
105
+ " $PageFileSetting.MaximumSize = 10000" ,
106
+ " $PageFileSetting.Put()" ,
107
+
95
108
" echo __done__"
96
109
]
0 commit comments