2018-10-10 11:00:52 UTC
3.03 GB
C:\ojdkbuild
JAVA_OJDKBUILD_SHA256dd7d2ea7951c06857523e95359e5e94630039a1eae5b5223e4b8c308afc95ebb
JAVA_OJDKBUILD_VERSION1.8.0.181-1
JAVA_OJDKBUILD_ZIPjava-1.8.0-openjdk-1.8.0.181-1.b13.ojdkbuild.windows.x86_64.zip
JAVA_VERSION8u181
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 69.84% (2.12 GB)
[#001] sha256:ddd7a4737dfbb59b49c30480146e7f0a61842409755bd479b63004c5643d0ed3 - 26.61% (826 MB)
[#002] sha256:cf0d3e1d36b0cda001b50a29a3b2898c0f456696a4491b2d5536e4af41eed468 - 0.0% (1.17 KB)
[#003] sha256:c7eb69155bffa6c6ea7d5d73736f5093986d2e4efb5f06bf4e030e2a73590d0a - 0.0% (1.17 KB)
[#004] sha256:0e0dfeb0f2cd55b37afbf9a810a43b0e3396615d298262a6ccd191e4ae2c2ab7 - 0.15% (4.54 MB)
[#005] sha256:bcc99a95fe3e42a5d09f9137d8e420ac588213bd6e2d0ea6b3f4b02d6dcfbcf3 - 0.0% (1.16 KB)
[#006] sha256:9f1771350e479b79ec6d98da5a2e39df1861e02462cbf37c247a1f394a6bb23f - 0.0% (1.17 KB)
[#007] sha256:c423ecbd17b4541638231ae28b6d11d97808d48a8880effaee9f2200b6ae89cc - 0.0% (1.16 KB)
[#008] sha256:279d28c43a2f17a0f4186a3f82895048759dcaf58a3f822730c6daf33baaefda - 0.0% (1.17 KB)
[#009] sha256:7a9bc05198bc04cb6e0f98946d81ce5dd66cc8781f73ed176a5d75bc7b5c2646 - 3.4% (106 MB)
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:49:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\ojdkbuild
2018-10-10 10:50:31 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-10 10:59:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=8u181
2018-10-10 10:59:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_VERSION=1.8.0.181-1
2018-10-10 10:59:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_ZIP=java-1.8.0-openjdk-1.8.0.181-1.b13.ojdkbuild.windows.x86_64.zip
2018-10-10 10:59:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_SHA256=dd7d2ea7951c06857523e95359e5e94630039a1eae5b5223e4b8c308afc95ebb
2018-10-10 11:00:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $url = ('https://github.com/ojdkbuild/ojdkbuild/releases/download/{0}/{1}' -f $env:JAVA_OJDKBUILD_VERSION, $env:JAVA_OJDKBUILD_ZIP); Write-Host ('Downloading {0} ...' -f $url); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $url -OutFile 'ojdkbuild.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:JAVA_OJDKBUILD_SHA256); if ((Get-FileHash ojdkbuild.zip -Algorithm sha256).Hash -ne $env:JAVA_OJDKBUILD_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive ojdkbuild.zip -DestinationPath C:\; Write-Host 'Renaming ...'; Move-Item -Path ('C:\{0}' -f ($env:JAVA_OJDKBUILD_ZIP -Replace '.zip$', '')) -Destination $env:JAVA_HOME ; Write-Host 'Verifying install ...'; Write-Host ' java --version'; java --version; Write-Host ' javac --version'; javac --version; Write-Host 'Removing ...'; Remove-Item ojdkbuild.zip -Force; Write-Host 'Complete.';
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.