2024-07-02 00:58:32 UTC
2.17 GB
C:\openjdk-24
JAVA_SHA25649def475d4ac8b16fc13e9f43cb195b1da28c70cbfa438466e25f7b82c5c55a2
JAVA_URLhttps://download.java.net/java/early_access/jdk24/4/GPL/openjdk-24-ea+4_windows-x64_bin.zip
JAVA_VERSION24-ea+4
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 59.71% (1.29 GB)
[#001] sha256:eb373ec9afdfc5f09b9380d981e0c61f9c7b48537b887135c7c66810086e705e - 31.37% (696 MB)
[#002] sha256:78023868517c9e90cd1a2da57a94d15b051ec6e346b01dc6db1422b9a42efe46 - 0.0% (1.3 KB)
[#003] sha256:d5569bc9a87b1ba1cdefcec68115c4739eabeab66f7766c2bbd5037eee60598f - 0.02% (351 KB)
[#004] sha256:c6780b70e7c9a26687fb9cbb876d11dc82bf99a0016852dfce87b7709fd5c9f9 - 0.0% (1.26 KB)
[#005] sha256:6c380a3d2cb1adee65a90fb600092d0786df1cb4dbfcf4096ca431be8949afc1 - 0.01% (337 KB)
[#006] sha256:bb9ca61ef1b1da104241c922ec429f6c70cdfde7947957e5999c1854772d9da0 - 0.0% (1.26 KB)
[#007] sha256:599f9966908c26c02ef9cca1c142c3847badebd914e3d05f8fc4b6cecb0c9226 - 0.0% (1.25 KB)
[#008] sha256:2a69efd113708e0e938933a3caf1e72a2a78ee9fd6e1dc43f2c30c1b2073119b - 0.0% (1.26 KB)
[#009] sha256:2035dc4544631d55c9769410ea995617440af3d55307e42059e1568b16e9d6a3 - 8.88% (197 MB)
[#010] sha256:f966edd9ceeac2ac401fc189601209421fa0cee01095d974d0088d623da5d76a - 0.0% (1.26 KB)
Apply image 10.0.20348.1787
2024-06-19 19:58:05 UTCInstall update 10.0.20348.2529
2024-07-02 00:57:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-07-02 00:57:59 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-02 00:57:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-24
2024-07-02 00:58:05 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-02 00:58:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=24-ea+4
2024-07-02 00:58:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk24/4/GPL/openjdk-24-ea+4_windows-x64_bin.zip
2024-07-02 00:58:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=49def475d4ac8b16fc13e9f43cb195b1da28c70cbfa438466e25f7b82c5c55a2
2024-07-02 00:58:31 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-02 00:58:32 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.