2022-08-26 22:16:24 UTC
2.34 GB
C:\openjdk-20
JAVA_SHA256e5d50bf1daa820167e68a74d75787b6bee34563a2fcb4f671494ae1b808aadcd
JAVA_URLhttps://download.java.net/java/early_access/jdk20/12/GPL/openjdk-20-ea+12_windows-x64_bin.zip
JAVA_VERSION20-ea+12
[#000] sha256:97f65a0ec59e643faf84024aa713a9be059322380315fda829756bbbd96d6258 - 57.22% (1.34 GB)
[#001] sha256:97b25a378238b615dc51216c4d87ce17fd3cc3dca9db458e8705d1a4c17e3bb7 - 35.05% (839 MB)
[#002] sha256:4a5e3787c778295a5877e0381020b02273a985f7db2dd483ddff586869546e4c - 0.0% (1.39 KB)
[#003] sha256:1f0cc935c154780815cf1fb6065aa1c262b52a7648b984b06133beb4e95833c0 - 0.02% (610 KB)
[#004] sha256:43525a703370320083aa7f64beeb4176b2090f555b73f9be7f9cb9fbda9f5736 - 0.0% (1.39 KB)
[#005] sha256:cf27aca426cd52616bfeb5296c1b75f2095211cf6c91d27a306c654522f65a32 - 0.02% (544 KB)
[#006] sha256:561f740c2b82c2eda475a6045481dee90a5b8a13867d6fbb0b0d6ef683433afd - 0.0% (1.4 KB)
[#007] sha256:7176d3695fd9295a19a449de6e0d3b094739ff35799840e78fa356cfd34b9098 - 0.0% (1.39 KB)
[#008] sha256:7f967065efef6224dca9d5fd903048621ba6e8b9363b70217e567efa79d5c679 - 0.0% (1.4 KB)
[#009] sha256:d8e8fb4ccaf9b4c8e7f151c33b48bdb67a5b179f0f907f98ba95e5e37dba06fe - 7.68% (184 MB)
[#010] sha256:7262f1708741438ac33341e0e0ee68d0ccdf234c8a5326e60ff6d96a3fdcd246 - 0.0% (1.39 KB)
Apply image 10.0.20348.643
2022-08-06 02:59:35 UTCInstall update 10.0.20348.887
2022-08-10 12:11:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2022-08-10 16:55:00 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.'
2022-08-10 16:55:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-20
2022-08-10 16:55:20 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.'
2022-08-26 22:15:19 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=20-ea+12
2022-08-26 22:15:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk20/12/GPL/openjdk-20-ea+12_windows-x64_bin.zip
2022-08-26 22:15:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=e5d50bf1daa820167e68a74d75787b6bee34563a2fcb4f671494ae1b808aadcd
2022-08-26 22:16:21 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.'
2022-08-26 22:16:24 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.