fix(perception): isolate Worker Docker credentials
This commit is contained in:
@@ -47,6 +47,10 @@ $runOutput = Join-Path $output $RunId
|
||||
if (Test-Path -LiteralPath $runOutput) { throw "M49 T1 output already exists" }
|
||||
$null = New-Item -ItemType Directory -Path $runOutput
|
||||
$runOutput = Resolve-DDirectory $runOutput "M49 T1 run output" $false
|
||||
$dockerConfig = Join-Path $runOutput "docker-config"
|
||||
$null = New-Item -ItemType Directory -Path $dockerConfig
|
||||
'{"auths":{}}' | Set-Content -LiteralPath (Join-Path $dockerConfig "config.json") -Encoding ascii
|
||||
$env:DOCKER_CONFIG = $dockerConfig
|
||||
|
||||
$os = Get-CimInstance Win32_OperatingSystem
|
||||
$freeMemoryGiB = [double]$os.FreePhysicalMemory / 1MB
|
||||
|
||||
Reference in New Issue
Block a user