2016-10-18 21:01:31 UTC
372 MB
af2b836bb894672cf4c28df32a2ee3ff560e2b463e1ab44bb99833064ba09e5f
GOLANG_DOWNLOAD_URLhttps://golang.org/dl/go1.7.1.windows-amd64.zip
GOLANG_VERSION1.7.1
GOPATHC:\gopath
[#000] sha256:5496abde368a3dd39999745bf998c877ddc6a390a943bc3fd99ffaabf728ed88 - 62.19% (231 MB)
[#001] sha256:94b4ce7ac4c7c7d4ed75ac2bd9359a87204ad2d5a909759d8e77953874d8e7c2 - 14.46% (53.8 MB)
[#002] sha256:12ba288c0d1d424b4832b58c8d542b2b1cc0c8ed873e0f4805a83f705f351eb7 - 0.0% (954 Bytes)
[#003] sha256:66aabf8dca125e29a1422adc206ada519107e390cdc61e481410b7fe3f75538b - 0.0% (962 Bytes)
[#004] sha256:3844df32288b9b5de39acf93cc8fd2e0d5662b9b8cefc58c9d5382fc2b6d16d0 - 0.21% (800 KB)
[#005] sha256:0ba87c5919873c1ca7ace19f962bc46a14085c5d384cc710342a286698c3c747 - 0.0% (951 Bytes)
[#006] sha256:d09b991c3c0d70815c62adbb5f5fac061263f628ff984aba0ace691dcdcaabe8 - 0.0% (955 Bytes)
[#007] sha256:1e207feccf1da194877f3290d9dee14d21d7a41b9b24fd39a7687ffa5afb777b - 0.0% (961 Bytes)
[#008] sha256:965195db54fdc98e9fd8bc812b4579fdf5dcd94516484389f1973f24d2ed9203 - 23.13% (86.1 MB)
[#009] sha256:7f1dcde5831159a9c1f4a6d81d880e24ca5c0cff17e40086d86a35faf57b6fe9 - 0.0% (957 Bytes)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2016-10-18 20:48:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOPATH=C:\gopath
2016-10-18 20:48:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $newPath = ('{0}\bin;C:\go\bin;{1}' -f $env:GOPATH, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); setx /M PATH $newPath;
2016-10-18 20:57:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_VERSION=1.7.1
2016-10-18 20:57:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_URL=https://golang.org/dl/go1.7.1.windows-amd64.zip
2016-10-18 20:57:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_SHA256=af2b836bb894672cf4c28df32a2ee3ff560e2b463e1ab44bb99833064ba09e5f
2016-10-18 21:01:29 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 21:01:31 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.