2021-12-14 01:22:02 UTC
2.69 GB
C:\openjdk-19
JAVA_SHA2562964c4ea8952f33b7d853c7e8c7a7535fc2b6ab560815bbd4befd0581708b944
JAVA_URLhttps://download.java.net/java/early_access/jdk19/1/GPL/openjdk-19-ea+1_windows-x64_bin.zip
JAVA_VERSION19-ea+1
[#000] sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f - 59.42% (1.6 GB)
[#001] sha256:c1f4c7287c99b95fce227924349d1d139aceb37d97b555144bd5808935b6eab0 - 34.16% (942 MB)
[#002] sha256:b35c0957cca5902f3108e43a3c2c11250dc754ee0bb43900eb0719b4350f0bc2 - 0.0% (1.38 KB)
[#003] sha256:db7f0affb9ccb091d200f0da9e1f9185ac51673de7fed0c7b6d5c33e7c906911 - 0.01% (350 KB)
[#004] sha256:562f1a5727d1dd40b5172bd6a2d027212ffd663762b40070df047af782a2305d - 0.0% (1.29 KB)
[#005] sha256:cc5c70efa1fb33ce6999137950b2c7e0a74c5b609a4392ec720f47a6e868f313 - 0.01% (341 KB)
[#006] sha256:7f8ee9760f24974387189a4a1727c5efac59c664c97988488b1cdea8d7832066 - 0.0% (1.39 KB)
[#007] sha256:8db9d319530e9f813a9beebb315f07bf09e6b8f2f6c70d311de18d7ff1be0964 - 0.0% (1.39 KB)
[#008] sha256:2f9d269d05c178bf36d3009fa0bae32bbf7467502eb435ea0e24f9bba5c4ec46 - 0.0% (1.39 KB)
[#009] sha256:e67049f65dbbd2717bdc3b19b0ed6fdbe67109e76da67d470f421cfd2acf92e8 - 6.4% (177 MB)
[#010] sha256:d6090ab12aee53f291cf7cb84ce85925526674f13bc96459a0460813ffd91945 - 0.0% (1.38 KB)
Apply image 1809-RTM-amd64
2021-11-04 00:30:48 UTCInstall update 1809-amd64
2021-11-10 01:42:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2021-11-10 20:25:40 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.'
2021-12-14 01:19:08 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-19
2021-12-14 01:20:09 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.'
2021-12-14 01:20:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=19-ea+1
2021-12-14 01:20:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk19/1/GPL/openjdk-19-ea+1_windows-x64_bin.zip
2021-12-14 01:20:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=2964c4ea8952f33b7d853c7e8c7a7535fc2b6ab560815bbd4befd0581708b944
2021-12-14 01:22:00 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.'
2021-12-14 01:22:02 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.