mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
27 lines
634 B
PowerShell
27 lines
634 B
PowerShell
################################################################################
|
|
## File: Validate-Docker.ps1
|
|
## Desc: Validate Docker.
|
|
################################################################################
|
|
|
|
if ((Get-Command -Name 'docker') -and (Get-Command -Name 'docker-compose'))
|
|
{
|
|
Write-Host "docker $(docker version) on path"
|
|
Write-Host "docker-compose $(docker-compose version) on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host "docker or docker-compose are not on path"
|
|
exit 1
|
|
}
|
|
|
|
# Validate helm
|
|
if (Get-Command -Name 'helm')
|
|
{
|
|
Write-Host "helm on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'helm is not on path'
|
|
exit 1
|
|
}
|