2018-10-27 09:22:03 UTC
3.11 GB
C:\openjdk-12
JAVA_SHA256c12daec9fa6bab9797c35cb01f282914f5bed0850647307a6e1117a0b855cd22
JAVA_URLhttps://download.java.net/java/early_access/jdk12/17/GPL/openjdk-12-ea+17_windows-x64_bin.zip
JAVA_VERSION12-ea+17
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 68.08% (2.12 GB)
[#001] sha256:ddd7a4737dfbb59b49c30480146e7f0a61842409755bd479b63004c5643d0ed3 - 25.94% (826 MB)
[#002] sha256:cf0d3e1d36b0cda001b50a29a3b2898c0f456696a4491b2d5536e4af41eed468 - 0.0% (1.17 KB)
[#003] sha256:19865e1a3d44da656772f14c9b6bcaf79e686d2721aab008563de748a895280f - 0.0% (1.17 KB)
[#004] sha256:d0bab5bdc16ecbdb302a0c04a6e81913ccd6ebc425dc9ac4aac12acd89118396 - 0.14% (4.54 MB)
[#005] sha256:780e0d91d157cd20cb03750ff10ab1326625cd46f9e206e77f4bb738c9e62e7e - 0.0% (1.18 KB)
[#006] sha256:52ae724ec1fe1d40c65f6ba25fdd58f45f17c5dde167c916425a11b7502bf25b - 0.0% (1.17 KB)
[#007] sha256:c89b6164e98614d82c6efa1c89f96df02ea38073ba3720bd15ab862796f10de2 - 0.0% (1.17 KB)
[#008] sha256:9ace64c071a2b622dd0f6461b3c7a53107c586c25a7737b0b56825d4d10975bb - 5.84% (186 MB)
[#009] sha256:b62cb53b841510853446c8e546fda19ef0ddcea3741592c9b51339f0f2b79739 - 0.0% (1.17 KB)
Apply image 10.0.16299.15
2018-10-01 22:02:14 UTCInstall update 10.0.16299.726
2018-10-10 09:42:08 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2018-10-10 10:26:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-12
2018-10-10 10:28:03 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
2018-10-27 09:19:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=12-ea+17
2018-10-27 09:19:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk12/17/GPL/openjdk-12-ea+17_windows-x64_bin.zip
2018-10-27 09:19:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=c12daec9fa6bab9797c35cb01f282914f5bed0850647307a6e1117a0b855cd22
2018-10-27 09:22:01 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 'Verifying install ...'; Write-Host ' java --version'; java --version; Write-Host ' javac --version'; javac --version; Write-Host 'Removing ...'; Remove-Item openjdk.zip -Force; Write-Host 'Complete.'
2018-10-27 09:22:03 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.