2024-12-11 20:43:14 UTC
2.07 GB
C:\openjdk-25
JAVA_SHA256e613057ce9dd454d410ac2462a504dd7679eeec29d28c18c9d16c6d12f12f346
JAVA_URLhttps://download.java.net/java/early_access/jdk25/1/GPL/openjdk-25-ea+1_windows-x64_bin.zip
JAVA_VERSION25-ea+1
[#000] sha256:803f4a9590cb9c635813cbd0ee89190f92d5fe4c7589711cf468879e42ce02ba - 77.35% (1.6 GB)
[#001] sha256:3308b54d35b61854238974280a5b0ecc72a98e2ead17d04f42770a7b35407090 - 13.22% (280 MB)
[#002] sha256:3394029499f192ac3be229706271ea5e2d5a1604895ab66dab3173b9373fb981 - 0.0% (1.27 KB)
[#003] sha256:b0b8d16b634861e5b13f96f4921e2c550ca0a7eb018c26ef965d81fa3603920e - 0.02% (462 KB)
[#004] sha256:93d836079c7592f6d11730f7646bc82fe68ada389debefc31808e74b7f9d5077 - 0.0% (1.27 KB)
[#005] sha256:0ae3ef5e1a6e39e83daae8ab302782353f59ea0f7cf3a8c247522ca7ee4f90a3 - 0.01% (317 KB)
[#006] sha256:ec9c106f4166a57968bb01c1d3ef094f968de477b1c7b228101eb2784726d00c - 0.0% (1.27 KB)
[#007] sha256:ce7830650946fc8d807cd0994465d345837d22a10fa0f231c07efaf0a1e3686e - 0.0% (1.27 KB)
[#008] sha256:808f35b3c5234c6275017242c38c8fbcb3477ca1978eaecd5aa0de0ee1d10faa - 0.0% (1.28 KB)
[#009] sha256:8073c63f315cb2646f01cdb3afdd37a8a8eaedad39645062476c68a90b50bde4 - 9.39% (199 MB)
[#010] sha256:3f59074833366a6d0cb0b81fbe5de0eae346f9b68bf6cb263bb855386b3439bc - 0.0% (1.26 KB)
Apply image 10.0.17763.6293
2024-12-05 05:10:22 UTCInstall update 10.0.17763.6659
2024-12-11 20:41:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-12-11 20:42:41 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-12-11 20:42:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-25
2024-12-11 20:42:47 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-12-11 20:42:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=25-ea+1
2024-12-11 20:42:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk25/1/GPL/openjdk-25-ea+1_windows-x64_bin.zip
2024-12-11 20:42:49 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=e613057ce9dd454d410ac2462a504dd7679eeec29d28c18c9d16c6d12f12f346
2024-12-11 20:43: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-12-11 20:43: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.