2024-06-12 18:05:57 UTC
2.17 GB
C:\openjdk-23
JAVA_SHA25679726b7c310903e3f9fa306110b1316629abf85403efeb1bb660d9fa7cff7a01
JAVA_URLhttps://download.java.net/java/early_access/jdk23/26/GPL/openjdk-23-ea+26_windows-x64_bin.zip
JAVA_VERSION23-ea+26
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 59.72% (1.29 GB)
[#001] sha256:cedf08888525e83e4a050655b4ec0d81647e59a69f7007a560df774a656da9bb - 31.38% (696 MB)
[#002] sha256:0ea101af398c7c16db5087deff6383f621ccae913f2afdd10d0c5dd8ffba75e0 - 0.0% (1.26 KB)
[#003] sha256:f644aac8bbef2d01636c9a583d462d9c99cb06566157f3fff490e98c938a180b - 0.02% (341 KB)
[#004] sha256:6278c8c75bbbc9bf0d6bf54762055bb2d4c828ad3e97cac0ab643c3c9994faa8 - 0.0% (1.25 KB)
[#005] sha256:cb2a5b9ec89230bc9d45d17792e7a50b0b9999a9812a4cbee887b6dbd8a39d0a - 0.01% (327 KB)
[#006] sha256:0a7292e28da7d3d23202635a43ad4f6371884fb234c94614811f4f8547fded74 - 0.0% (1.25 KB)
[#007] sha256:a53bc3f14365b974684d54b455db89dba026be1df1425286b8a342ef9712b72e - 0.0% (1.26 KB)
[#008] sha256:ba6cd491c7b064ef83e3601be5a978da7b023022e1652368b241537756a1905e - 0.0% (1.26 KB)
[#009] sha256:7f62d98c2ea7b60a3235cd3930243d50e225371273bcaf2c29b32a2530e4a887 - 8.88% (197 MB)
[#010] sha256:862e0cb52c22e6734d0e46c3299ac69eb475fabe9516c5dba95675e98ddf0eac - 0.0% (1.26 KB)
Apply image 10.0.20348.1787
2024-06-07 09:02:12 UTCInstall update 10.0.20348.2527
2024-06-12 18:05:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-06-12 18:05:22 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-06-12 18:05:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-23
2024-06-12 18:05:28 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-06-12 18:05:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=23-ea+26
2024-06-12 18:05:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk23/26/GPL/openjdk-23-ea+26_windows-x64_bin.zip
2024-06-12 18:05:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=79726b7c310903e3f9fa306110b1316629abf85403efeb1bb660d9fa7cff7a01
2024-06-12 18:05:55 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-06-12 18:05:57 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.