2016-10-18 20:57:09 UTC
4.34 GB
006d971bcbe73cc8d841a100a4eb20d22e135142bf5b0f2120722fd420e166e5
GIT_DOWNLOAD_URLhttps://github.com/git-for-windows/git/releases/download/v2.9.2.windows.1/Git-2.9.2-64-bit.exe
GIT_TAGv2.9.2.windows.1
GIT_VERSION2.9.2
GOLANG_DOWNLOAD_SHA256af2b836bb894672cf4c28df32a2ee3ff560e2b463e1ab44bb99833064ba09e5f
GOLANG_DOWNLOAD_URLhttps://golang.org/dl/go1.7.1.windows-amd64.zip
GOLANG_VERSION1.7.1
GOPATHC:\gopath
[#000] sha256:9c7f9c7d9bc2915388ecc5d08e89a7583658285469d7325281f95d8ee279cc60 - 80.12% (3.48 GB)
[#001] sha256:de5064718b3f2749727c8b5ffddf2da7698189277afe0df6fc0a57ad573bca0f - 13.14% (585 MB)
[#002] sha256:ce8c033b9d9ab0f42b7bc1457fc9094bbf37079117ad712092b3e48f11a6e218 - 0.0% (1.18 KB)
[#003] sha256:0ac669cb897e39ec11f318c297f4d37f4fcee666f73329a87d682d483650eb81 - 0.0% (1.18 KB)
[#004] sha256:637e390ccc606ceb43ffe429ad2eba95a67bbe497de0ac9394d09faee98cb647 - 0.0% (1.19 KB)
[#005] sha256:8e960bb9bf7ba980b3a5aa3bbbe2e43cbbbbb8bb179e56609a2325db86aab69f - 0.0% (1.19 KB)
[#006] sha256:8c43be2eca6ba8658363340237b0999be111d6e4b4e76e8bf42f801737692de4 - 0.0% (1.18 KB)
[#007] sha256:72e0e4bf1429e0a8e00029f128ffac0b63d9f984ce3733deb814d188e3a505ea - 4.62% (205 MB)
[#008] sha256:0185773a0a17452f7ec01e4963e4d512f4831e3a40e9bb1258b9081dec9c4934 - 0.0% (1.19 KB)
[#009] sha256:42a07a6f6ea11b197fcf5338624e85603ff44b33e9a7d1f0aa5c6da047ad5133 - 0.09% (4.13 MB)
[#010] sha256:21ad733bdf7870d5f92b27ae7c0326e19fb6ce3e59722d330d9586dbb0fffec4 - 0.0% (1.18 KB)
[#011] sha256:ed3184f3cf253729b0153d895908b1dcd1d7a3d4279834deb4af4ca468996813 - 0.0% (1.18 KB)
[#012] sha256:db0367480267cf86ae940c2a7995e9255af95555e814b821adce0ed40b0a9428 - 0.0% (1.19 KB)
[#013] sha256:d512043adc288afa8c6bb2e0cbfdcb273c84f7852611f30cf476c9ee749db746 - 2.02% (90.1 MB)
[#014] sha256:8a2d3b9278840a52ee041fe761fea772189b259b0e6c69abb681981f88d3706d - 0.0% (1.18 KB)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2016-10-12 19:25:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GIT_VERSION=2.9.2
2016-10-12 19:25:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GIT_TAG=v2.9.2.windows.1
2016-10-12 19:25:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GIT_DOWNLOAD_URL=https://github.com/git-for-windows/git/releases/download/v2.9.2.windows.1/Git-2.9.2-64-bit.exe
2016-10-12 19:25:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GIT_DOWNLOAD_SHA256=006d971bcbe73cc8d841a100a4eb20d22e135142bf5b0f2120722fd420e166e5
2016-10-18 20:43:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); Invoke-WebRequest -Uri $env:GIT_DOWNLOAD_URL -OutFile 'git.exe'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:GIT_DOWNLOAD_SHA256); if ((Get-FileHash git.exe -Algorithm sha256).Hash -ne $env:GIT_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Installing ...'; Start-Process -Wait -FilePath ./git.exe -ArgumentList @( '/VERYSILENT', '/NORESTART', '/NOCANCEL', '/SP-', '/SUPPRESSMSGBOXES', '/COMPONENTS=assoc_sh', '/DIR=C:\git' ); Write-Host 'Updating PATH ...'; $env:PATH = 'C:\git\bin;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' git --version'; git --version; Write-Host ' bash --version'; bash --version; Write-Host ' curl --version'; curl.exe --version; Write-Host 'Removing installer ...'; Remove-Item git.exe -Force; Write-Host 'Complete.';
2016-10-18 20:43:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOPATH=C:\gopath
2016-10-18 20:43:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $newPath = ('{0}\bin;C:\go\bin;{1}' -f $env:GOPATH, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine);
2016-10-18 20:52:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_VERSION=1.7.1
2016-10-18 20:52:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_URL=https://golang.org/dl/go1.7.1.windows-amd64.zip
2016-10-18 20:52:51 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_SHA256=af2b836bb894672cf4c28df32a2ee3ff560e2b463e1ab44bb99833064ba09e5f
2016-10-18 20:57:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:GOLANG_DOWNLOAD_URL); Invoke-WebRequest -Uri $env:GOLANG_DOWNLOAD_URL -OutFile 'go.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:GOLANG_DOWNLOAD_SHA256); if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $env:GOLANG_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive go.zip -DestinationPath C:\; Write-Host 'Verifying install ("go version") ...'; go version; Write-Host 'Removing ...'; Remove-Item go.zip -Force; Write-Host 'Complete.';
2016-10-18 20:57:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) WORKDIR C:\gopath
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.