2024-07-29 16:58:23 UTC
2.19 GB
C:\openjdk-24
JAVA_SHA2569b41f4fa8fda2053a051bc20bddfb268fafd41238d79bbe06fe4e295fdafa5de
JAVA_URLhttps://download.java.net/java/early_access/jdk24/8/GPL/openjdk-24-ea+8_windows-x64_bin.zip
JAVA_VERSION24-ea+8
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 59.16% (1.29 GB)
[#001] sha256:5f0206d135152eb909f50159d6ca348a5aead199afacbafc000b770c1b0720f6 - 32.0% (716 MB)
[#002] sha256:95de3cbbf001e64065f33024bb9fc66f601b201a1bd13f8e955fb59e548cd08f - 0.0% (1.33 KB)
[#003] sha256:cfb10e03948900098a30d8b7b3e19c890bddbbdef4787079175672bf40d47ace - 0.01% (342 KB)
[#004] sha256:523949db16d8452518ae7866fd9cbef7b43e83775375d3505c5263abbad8b036 - 0.0% (1.33 KB)
[#005] sha256:7a57ac7d0467e556e36c8356b84448cac1a068d48b0271ec4d78b4574d9b8dad - 0.01% (294 KB)
[#006] sha256:e08e1709f1edf9097ae9d5ace66214ae94a0b75e94b506ee67bef409fa59eb7c - 0.0% (1.26 KB)
[#007] sha256:7842f9460a31ff6257b5108993a4cbb21f63935b5426aad589fc44016ec20465 - 0.0% (1.28 KB)
[#008] sha256:f41ab2b6ff304579be2e31e4b094b51b8f03d2396b25068926078b993db48e5a - 0.0% (1.26 KB)
[#009] sha256:5ff82a309975eb5e6385ff3b523158292ede1fafdcbcc0eed517fa356eb16942 - 8.81% (197 MB)
[#010] sha256:869e296a5c02dff6f818ccff0d0b7ffabebc2721fe6a35520c7ae01ae184844d - 0.0% (1.25 KB)
Apply image 10.0.20348.1787
2024-07-03 10:07:02 UTCInstall update 10.0.20348.2582
2024-07-29 16:56:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-07-29 16:57:33 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-07-29 16:57:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-24
2024-07-29 16:57:41 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-07-29 16:57:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=24-ea+8
2024-07-29 16:57:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk24/8/GPL/openjdk-24-ea+8_windows-x64_bin.zip
2024-07-29 16:57:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=9b41f4fa8fda2053a051bc20bddfb268fafd41238d79bbe06fe4e295fdafa5de
2024-07-29 16:58:22 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-07-29 16:58:23 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.