mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:39:01 +08:00
Move Azure Compute to eastasia (#24821)
* Move to eastasia, and use smaller machine to mint images. * Update pools. * Switch storage accounts to eastasia
This commit is contained in:
parent
7e3dcf74e3
commit
338c94d342
@ -2,8 +2,8 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
variables:
|
||||
windows-pool: 'PrWin-2022-05-16'
|
||||
linux-pool: 'PrLin-2022-05-16'
|
||||
windows-pool: 'PrWin-2022-05-19'
|
||||
linux-pool: 'PrLin-2022-05-19'
|
||||
osx-pool: 'PrOsx-2022-02-04'
|
||||
|
||||
jobs:
|
||||
|
@ -16,10 +16,10 @@ jobs:
|
||||
value: /mnt/vcpkg-ci/downloads
|
||||
- group: vcpkg-asset-caching-credentials
|
||||
- name: X_VCPKG_ASSET_SOURCES
|
||||
value: "x-azurl,$(root-url),$(sas),readwrite"
|
||||
value: "x-azurl,$(root-url-ea),$(sas-ea),readwrite"
|
||||
- group: vcpkg-binary-caching-credentials
|
||||
- name: X_VCPKG_BINARY_SOURCE_STUB
|
||||
value: "x-azblob,$(root-bin-url),$(sas-bin)"
|
||||
value: "x-azblob,$(root-bin-url-ea),$(sas-bin-ea)"
|
||||
|
||||
steps:
|
||||
- bash: df -h
|
||||
|
@ -15,10 +15,10 @@ or are running from Azure Cloud Shell.
|
||||
This script assumes you have installed the OpenSSH Client optional Windows component.
|
||||
#>
|
||||
|
||||
$Location = 'westus2'
|
||||
$Location = 'eastasia'
|
||||
$Prefix = 'Lin-'
|
||||
$Prefix += (Get-Date -Format 'yyyy-MM-dd')
|
||||
$VMSize = 'Standard_D32as_v4'
|
||||
$VMSize = 'Standard_D8a_v4'
|
||||
$ProtoVMName = 'PROTOTYPE'
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
@ -89,7 +89,7 @@ $VM = Set-AzVMSourceImage `
|
||||
-VM $VM `
|
||||
-PublisherName 'Canonical' `
|
||||
-Offer '0001-com-ubuntu-server-focal' `
|
||||
-Skus '20_04-lts-gen2' `
|
||||
-Skus '20_04-lts' `
|
||||
-Version latest
|
||||
|
||||
$VM = Set-AzVMBootDiagnostic -VM $VM -Disable
|
||||
@ -159,7 +159,7 @@ Set-AzVM `
|
||||
-Generalized
|
||||
|
||||
$VM = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $ProtoVMName
|
||||
$ImageConfig = New-AzImageConfig -Location $Location -SourceVirtualMachineId $VM.ID -HyperVGeneration 'V2'
|
||||
$ImageConfig = New-AzImageConfig -Location $Location -SourceVirtualMachineId $VM.ID
|
||||
$ImageName = Find-ImageName -ResourceGroupName 'vcpkg-image-minting' -Prefix $Prefix
|
||||
New-AzImage -Image $ImageConfig -ImageName $ImageName -ResourceGroupName 'vcpkg-image-minting'
|
||||
|
||||
|
@ -28,7 +28,7 @@ Param(
|
||||
[string]$ImageName
|
||||
)
|
||||
|
||||
$Location = 'westus2'
|
||||
$Location = 'eastasia'
|
||||
$Prefix = 'PrLin-'
|
||||
$Prefix += (Get-Date -Format 'yyyy-MM-dd')
|
||||
$VMSize = 'Standard_D32a_v4'
|
||||
|
@ -20,10 +20,10 @@ jobs:
|
||||
value: /Users/vagrant/Data/downloads
|
||||
- group: vcpkg-binary-caching-credentials
|
||||
- name: X_VCPKG_BINARY_SOURCE_STUB
|
||||
value: "x-azblob,$(root-bin-url),$(sas-bin)"
|
||||
value: "x-azblob,$(root-bin-url),$(sas-bin)" # not in eastasia due to physical location
|
||||
- group: vcpkg-asset-caching-credentials
|
||||
- name: X_VCPKG_ASSET_SOURCES
|
||||
value: "x-azurl,$(root-url),$(sas),readwrite"
|
||||
value: "x-azurl,$(root-url-ea),$(sas-ea),readwrite"
|
||||
|
||||
steps:
|
||||
- bash: df -h
|
||||
|
@ -20,10 +20,10 @@ jobs:
|
||||
value: x86-windows
|
||||
- group: vcpkg-asset-caching-credentials
|
||||
- name: X_VCPKG_ASSET_SOURCES
|
||||
value: "x-azurl,$(root-url),$(sas),readwrite"
|
||||
value: "x-azurl,$(root-url-ea),$(sas-ea),readwrite"
|
||||
- group: vcpkg-binary-caching-credentials
|
||||
- name: X_VCPKG_BINARY_SOURCE_STUB
|
||||
value: "x-azblob,$(root-bin-url),$(sas-bin)"
|
||||
value: "x-azblob,$(root-bin-url-ea),$(sas-bin-ea)"
|
||||
|
||||
steps:
|
||||
- task: PowerShell@2
|
||||
|
@ -14,12 +14,12 @@ at https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.6
|
||||
or are running from Azure Cloud Shell.
|
||||
#>
|
||||
|
||||
$Location = 'westus2'
|
||||
$Location = 'eastasia'
|
||||
$Prefix = 'Win-'
|
||||
$Prefix += (Get-Date -Format 'yyyy-MM-dd')
|
||||
$VMSize = 'Standard_D32as_v4'
|
||||
$VMSize = 'Standard_D8a_v4'
|
||||
$ProtoVMName = 'PROTOTYPE'
|
||||
$WindowsServerSku = '2022-datacenter-g2'
|
||||
$WindowsServerSku = '2022-datacenter'
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$CudnnBaseUrl = 'https://vcpkgimageminting.blob.core.windows.net/assets/cudnn-windows-x86_64-8.3.2.44_cuda11.5-archive.zip'
|
||||
|
||||
@ -253,7 +253,7 @@ Set-AzVM `
|
||||
-Generalized
|
||||
|
||||
$VM = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $ProtoVMName
|
||||
$ImageConfig = New-AzImageConfig -Location $Location -SourceVirtualMachineId $VM.ID -HyperVGeneration 'V2'
|
||||
$ImageConfig = New-AzImageConfig -Location $Location -SourceVirtualMachineId $VM.ID
|
||||
$ImageName = Find-ImageName -ResourceGroupName 'vcpkg-image-minting' -Prefix $Prefix
|
||||
New-AzImage -Image $ImageConfig -ImageName $ImageName -ResourceGroupName 'vcpkg-image-minting'
|
||||
|
||||
|
@ -25,7 +25,7 @@ Param(
|
||||
[string]$ImageName
|
||||
)
|
||||
|
||||
$Location = 'westus2'
|
||||
$Location = 'eastasia'
|
||||
$Prefix = 'PrWin-'
|
||||
$Prefix += (Get-Date -Format 'yyyy-MM-dd')
|
||||
$VMSize = 'Standard_D32a_v4'
|
||||
|
Loading…
Reference in New Issue
Block a user