Skip to content

Commit 0e4504e

Browse files
azure-sdkRichard Park
andauthored
Force amd64 as the build platform - it has to match what the AKS cluster is running on. (#36187)
Co-authored-by: Richard Park <ripark\@microsoft.com>
1 parent 9dc6cc8 commit 0e4504e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ function DeployStressPackage(
285285
Write-Host "Setting DOCKER_BUILDKIT=1"
286286
$env:DOCKER_BUILDKIT = 1
287287

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

0 commit comments

Comments
 (0)