2024-05-06 23:06:10 UTC
2.05 GB
C:\openjdk-23
JAVA_SHA256c98243a78a073b3efebfce22fb6ecfd0dd918c983fb0812e40259405e02ee2a0
JAVA_URLhttps://download.java.net/java/early_access/jdk23/21/GPL/openjdk-23-ea+21_windows-x64_bin.zip
JAVA_VERSION23-ea+21
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 62.98% (1.29 GB)
[#001] sha256:197484daab96ebaf9683bc9230fb0043a8780d2afef249baa386f372a548b76a - 27.7% (582 MB)
[#002] sha256:233f06d7c97ef59b2ff97fbff627960eba0bf623661dfc9985695079d2205368 - 0.0% (1.26 KB)
[#003] sha256:9cb65ac230c3b2317101cf717a049133af5e86b5f28b26d12af41b2481ea9fb8 - 0.02% (478 KB)
[#004] sha256:972aab4e941c760a040d698202dd6e8579d2e20da4590ff51aeb4d1fb1b1a783 - 0.0% (1.26 KB)
[#005] sha256:484716df6e899088f21d054693c1d8e4751de30fbde9a9d83138461ed2e115c1 - 0.02% (334 KB)
[#006] sha256:2c5aaaff1498af49ad882dc5e8c5430c9deb706ca4b00be46a50cb5949bda0dc - 0.0% (1.26 KB)
[#007] sha256:61d2c36ebcf5a1d765b70198e0abb77bba789ca9da73bc225f0642e5c1b573a0 - 0.0% (1.25 KB)
[#008] sha256:5d2858da77ae620b58db737a562d2f3d7455ee5dc39c06fc9328bf23f110d801 - 0.0% (1.27 KB)
[#009] sha256:4ee1ef39eeaa7c254a6b15099a5e12fadf8c53abe1ae8ffae8f30077f47eb2c3 - 9.29% (195 MB)
[#010] sha256:d10c9091475e31906e1c86ee8efc38207c41f4656db9486024e8e39f02da80aa - 0.0% (1.26 KB)
Apply image 10.0.20348.1787
2024-04-05 09:25:01 UTCInstall update 10.0.20348.2402
2024-05-06 23:05:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-05-06 23:05:39 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-05-06 23:05:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-23
2024-05-06 23:05:46 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-05-06 23:05:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=23-ea+21
2024-05-06 23:05:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk23/21/GPL/openjdk-23-ea+21_windows-x64_bin.zip
2024-05-06 23:05:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=c98243a78a073b3efebfce22fb6ecfd0dd918c983fb0812e40259405e02ee2a0
2024-05-06 23:06:09 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-05-06 23:06:10 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.