2024-03-13 00:08:14 UTC
2.16 GB
C:\openjdk-22
JAVA_SHA2568f5138fecb53c08c20abd4fa6812f9400051f3852582a2142ffda0dff73a5824
JAVA_URLhttps://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_windows-x64_bin.zip
JAVA_VERSION22
[#000] sha256:c9226d61d3bdbf9f09821b32f5878623b8daaa5fb4f875cb63c199f87a26d57e - 71.03% (1.54 GB)
[#001] sha256:a22a88a4a0d197cb745939f382a7898094af0a089fce3173f283651a01da996b - 20.42% (452 MB)
[#002] sha256:af8a15734c0eaec184cda3413f2571154d9bb80bf601da921d83dd4a706f1ab4 - 0.0% (1.27 KB)
[#003] sha256:d116fd28edfe867fbeb6b0d96dcb2644e35555fa1755edb08118b0d6ad3e288a - 0.02% (491 KB)
[#004] sha256:4d859574128f0ca1278e8047c236a00be3638a162f547d3d73f0a2516c11533d - 0.0% (1.27 KB)
[#005] sha256:7de71e0a000e3174e22fde939bddb653ca9788a280e310863b125205ebf0fd3c - 0.02% (346 KB)
[#006] sha256:6e215510ccb449cfca569d0cebd98d0d50ebbd2c13319fa2b31a37bb9e5090ce - 0.0% (1.29 KB)
[#007] sha256:608b300cd6072c1cddd49cab29b228d761d71b17eef5915171eb9ddd90aab02e - 0.0% (1.27 KB)
[#008] sha256:3c3012331e0199a29bba0f7cfdd6db888bfc1bc02bbca3e3e91bf0e91b20cc6f - 0.0% (1.26 KB)
[#009] sha256:7a748726622a545777d3127c34d8cdaabe2aab21f44bc479b3960106d2af3f6b - 8.51% (189 MB)
[#010] sha256:592104761c6adf65d0857211221d2b07a7299ce86224bee59d9c010146098f6f - 0.0% (1.27 KB)
Apply image 10.0.17763.4499
2024-03-04 01:18:21 UTCInstall update 10.0.17763.5576
2024-03-13 00:06:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-03-13 00:06:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host 'Enabling TLS 1.2 (https://githubengineering.com/crypto-removal-notice/) ...'; $tls12RegBase = 'HKLM:\\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2'; if (Test-Path $tls12RegBase) { throw ('"{0}" already exists!' -f $tls12RegBase) }; New-Item -Path ('{0}/Client' -f $tls12RegBase) -Force; New-Item -Path ('{0}/Server' -f $tls12RegBase) -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; Write-Host 'Complete.'
2024-03-13 00:06:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-22
2024-03-13 00:07:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $newPath = ('{0}\bin;{1}' -f $env:JAVA_HOME, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); setx /M PATH $newPath; Write-Host 'Complete.'
2024-03-13 00:07:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=22
2024-03-13 00:07:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_windows-x64_bin.zip
2024-03-13 00:07:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=8f5138fecb53c08c20abd4fa6812f9400051f3852582a2142ffda0dff73a5824
2024-03-13 00:08:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host ('Downloading {0} ...' -f $env:JAVA_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $env:JAVA_URL -OutFile 'openjdk.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:JAVA_SHA256); if ((Get-FileHash openjdk.zip -Algorithm sha256).Hash -ne $env:JAVA_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; New-Item -ItemType Directory -Path C:\temp | Out-Null; Expand-Archive openjdk.zip -DestinationPath C:\temp; Move-Item -Path C:\temp\* -Destination $env:JAVA_HOME; Remove-Item C:\temp; Write-Host 'Removing ...'; Remove-Item openjdk.zip -Force; Write-Host 'Verifying install ...'; Write-Host ' javac --version'; javac --version; Write-Host ' java --version'; java --version; Write-Host 'Complete.'
2024-03-13 00:08:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) CMD ["jshell"]
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.