2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: Validate-Docker.ps1
|
|
|
|
|
## Desc: Validate Docker.
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2020-06-02 20:07:12 +03:00
|
|
|
if ((Get-Command -Name 'docker') -and (Get-Command -Name 'docker-compose'))
|
2019-12-13 09:48:00 -05:00
|
|
|
{
|
|
|
|
|
Write-Host "docker $(docker version) on path"
|
|
|
|
|
Write-Host "docker-compose $(docker-compose version) on path"
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-06-02 20:07:12 +03:00
|
|
|
Write-Host "docker or docker-compose are not on path"
|
2019-12-13 09:48:00 -05:00
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-17 16:46:13 +03:00
|
|
|
# Validate helm
|
|
|
|
|
if (Get-Command -Name 'helm')
|
|
|
|
|
{
|
|
|
|
|
Write-Host "helm on path"
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Write-Host 'helm is not on path'
|
|
|
|
|
exit 1
|
|
|
|
|
}
|