Namespace
library
Image / Tag
golang:1.21-windowsservercore-ltsc2022
Content Digest
sha256:c46d293fbfee896e1c81e0205c2749c8b6a6041ec14549f204cc4a6eef57b99d
Details
Created

2024-08-06 22:59:56 UTC

Size

2.08 GB

Content Digest
Environment
GIT_DOWNLOAD_SHA256

8f65208f92c0b4c3ae4c0cf02d4b5f6791d539cd1a07b2df62b7116467724735

GIT_DOWNLOAD_URL

https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/MinGit-2.23.0-64-bit.zip

GIT_TAG

v2.23.0.windows.1

GIT_VERSION

2.23.0

GOLANG_VERSION

1.21.13

GOPATH

C:\go


Layers

[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 62.14% (1.29 GB)

[#001] sha256:5f0206d135152eb909f50159d6ca348a5aead199afacbafc000b770c1b0720f6 - 33.61% (716 MB)

[#002] sha256:31bc9d074e56dd35544a558f93a9c3198b6a93b5ac1440dd927723b56f4758d4 - 0.0% (1.25 KB)

[#003] sha256:dc4cdd34549ad29a95afcc97e1ea1d36354445cff186462d9143ec4561bbc521 - 0.0% (1.26 KB)

[#004] sha256:9038940581b6539122a87783188aaa9d8583ee2299320665298b8fca6faba30c - 0.0% (1.25 KB)

[#005] sha256:fe645af3342e465899318dc4be86189d8911f07a9c14ca6893cead0ef762992f - 0.0% (1.25 KB)

[#006] sha256:c9940760778620056046702e639840179750ae6c03dc0e5ab2be6f39755a4f40 - 0.0% (1.26 KB)

[#007] sha256:46ffb52dbc5a8e5fa12e8e66069ce4c45c00b1d8e190307386fa674d22a9894e - 1.14% (24.3 MB)

[#008] sha256:cfac214221e49e8c37cac30b8d09d4cdc7d787daa208e2b8ca75b7b7650fa93f - 0.0% (1.25 KB)

[#009] sha256:3c1d16dea44054d0c981f4cdfb8d7983fdeba508e9c289f617d72c53ba0f00d7 - 0.01% (306 KB)

[#010] sha256:581edb4d5d836d6893688444679e98b557d1e5a519ca61b5f382d87683c691ae - 0.0% (1.25 KB)

[#011] sha256:ef3c3837964c972cf87e8010fcaa429b0b18de649308fc94fd66a3176387f1d7 - 3.1% (66.2 MB)

[#012] sha256:9995acfe8db1c8bf5a08019dc38f2a55d49b7e397416837ed04078ec55b15b7f - 0.0% (1.4 KB)


History
2023-06-08 12:55:20 UTC

Apply image 10.0.20348.1787

2024-07-03 10:07:02 UTC

Install update 10.0.20348.2582

2024-08-06 22:56:13 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]

2024-08-06 22:56:14 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GIT_VERSION=2.23.0

2024-08-06 22:56:15 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GIT_TAG=v2.23.0.windows.1

2024-08-06 22:56:15 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GIT_DOWNLOAD_URL=https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/MinGit-2.23.0-64-bit.zip

2024-08-06 22:56:16 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GIT_DOWNLOAD_SHA256=8f65208f92c0b4c3ae4c0cf02d4b5f6791d539cd1a07b2df62b7116467724735

2024-08-06 22:57:17 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $env:GIT_DOWNLOAD_URL -OutFile 'git.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:GIT_DOWNLOAD_SHA256); if ((Get-FileHash git.zip -Algorithm sha256).Hash -ne $env:GIT_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive -Path git.zip -DestinationPath C:\git\.; Write-Host 'Removing ...'; Remove-Item git.zip -Force; Write-Host 'Updating PATH ...'; $env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ("git version") ...'; git version; Write-Host 'Complete.';

2024-08-06 22:57:18 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GOPATH=C:\go

2024-08-06 22:57:24 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $newPath = ('{0}\bin;C:\Program Files\Go\bin;{1}' -f $env:GOPATH, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine);

2024-08-06 22:57:25 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV GOLANG_VERSION=1.21.13

2024-08-06 22:59:54 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $url = 'https://dl.google.com/go/go1.21.13.windows-amd64.zip'; Write-Host ('Downloading {0} ...' -f $url); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $url -OutFile 'go.zip'; $sha256 = '924655193634bfcdf7ec7a34589e0d73458741998a59e4155a929ce85f81af2d'; Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive go.zip -DestinationPath C:\; Write-Host 'Moving ...'; Move-Item -Path C:\go -Destination 'C:\Program Files\Go'; Write-Host 'Removing ...'; Remove-Item go.zip -Force; Write-Host 'Verifying install ("go version") ...'; go version; Write-Host 'Complete.';

2024-08-06 22:59:56 UTC

powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) WORKDIR C:\go