зеркало из https://github.com/Azure/acs-engine.git
Adding c:\tmp as needed to pass Kubernetes tests (#4240)
This commit is contained in:
Родитель
525c6db5d1
Коммит
564ee4e130
|
@ -38,4 +38,17 @@ function New-TemporaryDirectory {
|
|||
$parent = [System.IO.Path]::GetTempPath()
|
||||
[string] $name = [System.Guid]::NewGuid()
|
||||
New-Item -ItemType Directory -Path (Join-Path $parent $name)
|
||||
}
|
||||
|
||||
function Initialize-DataDirectories {
|
||||
# Some of the Kubernetes tests that were designed for Linux try to mount /tmp into a pod
|
||||
# On Windows, Go translates to c:\tmp. If that path doesn't exist, then some node tests fail
|
||||
|
||||
$requiredPaths = 'c:\tmp'
|
||||
|
||||
$requiredPaths | ForEach-Object {
|
||||
if (-Not (Test-Path $_)) {
|
||||
New-Item -ItemType Directory -Path $_
|
||||
}
|
||||
}
|
||||
}
|
|
@ -145,6 +145,9 @@ try
|
|||
Write-Log "Resize os drive if possible"
|
||||
Resize-OSDrive
|
||||
|
||||
Write-Log "Create required data directories as needed"
|
||||
Initialize-DataDirectories
|
||||
|
||||
Write-Log "Install docker"
|
||||
Install-Docker -DockerVersion $global:DockerVersion
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче