Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Fix missing blobxfer on Windows on restart
Browse files Browse the repository at this point in the history
- Resolves #358
  • Loading branch information
alfpark committed Apr 21, 2021
1 parent e371ac5 commit c5439ab
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/windows/shipyard_nodeprep_nativedocker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ if ($a) {
.\azurefile-mount.cmd
}

if (Test-Path $NodePrepFinished -pathType Leaf)
{
Write-Host "$NodePrepFinished file exists, assuming successful completion of node prep"
exit 0
}

# download blobxfer binary
$bxurl = "https://github.com/Azure/blobxfer/releases/download/${x}/blobxfer-${x}-win-amd64.exe"
$bxoutf = Join-Path $Env:AZ_BATCH_TASK_WORKING_DIR -ChildPath "blobxfer.exe"
Expand All @@ -98,6 +92,13 @@ if (!$?)
throw "Download from $bxurl to $bxoutf failed"
}

# check if this script was run successfully prior
if (Test-Path $NodePrepFinished -pathType Leaf)
{
Write-Host "$NodePrepFinished file exists, assuming successful completion of node prep"
exit 0
}

# pull required images
Exec { docker pull mcr.microsoft.com/azure-batch/shipyard:${v}-cargo-windows }

Expand Down

0 comments on commit c5439ab

Please sign in to comment.