Skip to content

Instantly share code, notes, and snippets.

@JeremyVV
Created June 21, 2019 17:14
Show Gist options
  • Select an option

  • Save JeremyVV/27039ed64ddc6146a35d2662705ff537 to your computer and use it in GitHub Desktop.

Select an option

Save JeremyVV/27039ed64ddc6146a35d2662705ff537 to your computer and use it in GitHub Desktop.
[Download Windows Kompose.exe] #kubernetes
<#PSScriptInfo
.VERSION 1.0
.GUID e95d1cbe-b25e-4dc1-bde9-7a3cdbcdfd17
.AUTHOR [email protected]
.COMPANYNAME
.COPYRIGHT
.TAGS
.LICENSEURI
.PROJECTURI
.ICONURI
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES
#>
<#
.DESCRIPTION
Downloads the latest kompose for windows
#>
Param(
$Downloadlocation = $env:TEMP
)
$repo = "kubernetes/kompose"
$file = "kompose-windows-amd64.exe"
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
$download = "https://github.com/$repo/releases/download/$tag/$file"
$name = "minikube.exe"
Write-Host Dowloading latest release - $tag
Invoke-WebRequest $download -Out $Downloadlocation\$name
Write-Host
Write-Host -ForegroundColor Magenta "You can now start minikube from $Downloadlocation."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment