Skip to content

Commit

Permalink
Force amd64 as the build platform - it has to match what the AKS clus…
Browse files Browse the repository at this point in the history
…ter is running on. (#36187)

Co-authored-by: Richard Park <ripark\@microsoft.com>
  • Loading branch information
azure-sdk and Richard Park authored Jun 21, 2024
1 parent 9dc6cc8 commit 0e4504e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ function DeployStressPackage(
Write-Host "Setting DOCKER_BUILDKIT=1"
$env:DOCKER_BUILDKIT = 1

$dockerBuildCmd = "docker", "build", "-t", $imageTag, "-f", $dockerFile
# Force amd64 since that's what our AKS cluster is running. Without this you
# end up inheriting the default for our platform, which is bad when using ARM
# platforms.
$dockerBuildCmd = "docker", "build", "--platform", "linux/amd64", "-t", $imageTag, "-f", $dockerFile
foreach ($buildArg in $dockerBuildConfig.scenario.GetEnumerator()) {
$dockerBuildCmd += "--build-arg"
$dockerBuildCmd += "'$($buildArg.Key)'='$($buildArg.Value)'"
Expand Down

0 comments on commit 0e4504e

Please sign in to comment.