From 1d0e5973241da9aee597204f321fdee97e0c07e1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:03:51 -0700 Subject: [PATCH] Set DOCKER_BUILDKIT to 1 in stress deploy image build (#21246) Co-authored-by: Ben Broderick Phillips --- .../scripts/stress-testing/stress-test-deployment-lib.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index b5a497179d1f..0f5ae468a98c 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -271,6 +271,9 @@ function DeployStressPackage( Write-Host "Building and pushing stress test docker image '$imageTag'" $dockerFile = Get-ChildItem $dockerFilePath + Write-Host "Setting DOCKER_BUILDKIT=1" + $env:DOCKER_BUILDKIT = 1 + $dockerBuildCmd = "docker", "build", "-t", $imageTag, "-f", $dockerFile foreach ($buildArg in $dockerBuildConfig.scenario.GetEnumerator()) { $dockerBuildCmd += "--build-arg"