2017-11-01 19:12:27 UTC
479 MB
C:\ojdkbuild
JAVA_OJDKBUILD_SHA2562911ccece06500cc5bd37cb76028d4bd2b6261cb7f77e39404895e18d430d383
JAVA_OJDKBUILD_VERSION1.8.0.141-1
JAVA_OJDKBUILD_ZIPjava-1.8.0-openjdk-1.8.0.141-1.b16.ojdkbuild.windows.x86_64.zip
JAVA_VERSION8u141
[#000] sha256:bce2fbc256ea437a87dadac2f69aabd25bed4f56255549090056c1131fad0277 - 50.34% (241 MB)
[#001] sha256:b0b5e40cb939a7befa4e01212d6f65f30022bbd04b5f15985b45ce9cfd3fcabc - 28.24% (135 MB)
[#002] sha256:a9382483e5965aea803961361c0487953f0cd98ba1d8dbc82a8fe13ea156788d - 0.0% (925 Bytes)
[#003] sha256:1e074639c3f1f8348162417ea29ea3801d066018a1ea0e50333e928a4b7a9631 - 0.0% (942 Bytes)
[#004] sha256:445d93faebb40c98963cfa742ac3fe0ad78305e0f06017aec2e30ed642514014 - 0.18% (878 KB)
[#005] sha256:a6a3515fa074a61bab8a92de55018c5743b1aea00e8746299b523f0f692598ac - 0.0% (942 Bytes)
[#006] sha256:5d2b2d9843f8ae92328ccdc4ba50fc957c771bbf799fb54693c4a01b31616a73 - 0.0% (949 Bytes)
[#007] sha256:e0c6d0f2c65ee7e3b4780330c59984d27e8f7352033ceebedf0ed3652a6e9fed - 0.0% (921 Bytes)
[#008] sha256:54653246d64f28dae4c71cedbe8403bb4fcbfe2e8b4b63556c5b9fa678eaa6b7 - 0.0% (946 Bytes)
[#009] sha256:2ff1b7e8bbcb9f3b932552cf327c78dfe674eb3b4946594bdfa7f46e1630fc3b - 21.24% (102 MB)
Apply image 10.0.14393.0
2017-10-09 19:23:15 UTCInstall update 10.0.14393.1770
2017-11-01 19:10:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2017-11-01 19:10:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\ojdkbuild
2017-11-01 19:11:11 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;
2017-11-01 19:11:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=8u141
2017-11-01 19:11:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_VERSION=1.8.0.141-1
2017-11-01 19:11:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_ZIP=java-1.8.0-openjdk-1.8.0.141-1.b16.ojdkbuild.windows.x86_64.zip
2017-11-01 19:11:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_SHA256=2911ccece06500cc5bd37cb76028d4bd2b6261cb7f77e39404895e18d430d383
2017-11-01 19:12:27 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); 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.