2017-03-31 17:10:43 UTC
4.97 GB
C:\ojdkbuild
JAVA_OJDKBUILD_SHA25699a842b88b42c049ba4ffc3b13a9b98fbdad818703750e319ae59aa717e95ad3
JAVA_OJDKBUILD_VERSION1.8.0.121-2
JAVA_OJDKBUILD_ZIPjava-1.8.0-openjdk-1.8.0.121-2.b13.ojdkbuild.windows.x86_64.zip
JAVA_VERSION8u121
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 76.32% (3.79 GB)
[#001] sha256:503d87f3196a164f17f7b7c68b76271330e21a7e4fbefd1a578b327ed102258e - 21.51% (1.07 GB)
[#002] sha256:284a70814970c5bbcfe1726dc8a95a35ec2036f57bc7acaa040ee01b19fd4844 - 0.0% (1.19 KB)
[#003] sha256:7d699e72d5ad1b00a1e6775521562de4723f9fc69b219e7d25974d1f0a4497d0 - 0.0% (1.2 KB)
[#004] sha256:953a5f4f078369083922ea5689720df2f0cfcd9451d0d650aa2598dbc23094c8 - 0.09% (4.67 MB)
[#005] sha256:56f15c87ba88a9e0748b59edea17174143298a158fc8f18c379a85d5d577b76d - 0.0% (1.18 KB)
[#006] sha256:44fe9ad067d1dc8e1c68718bfb7b5f8cd6257a558facf975e70fb4e3d65a66fb - 0.0% (1.19 KB)
[#007] sha256:aa064bcc1e15e004d59d49c2043f95c68036cf7deeb70c1132f9d577ca61a093 - 0.0% (1.19 KB)
[#008] sha256:17e4233a0b9cf64302140b15ef1eddaafbd77c22f83388cf78bf075b096eb228 - 0.0% (1.2 KB)
[#009] sha256:cd8e9269ff0326c89c2b252c286d92b7081281a396a4d3958e11ddb20a14f504 - 2.07% (105 MB)
powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2017-03-31 17:08:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\ojdkbuild
2017-03-31 17:09: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;
2017-03-31 17:09:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=8u121
2017-03-31 17:09:28 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_VERSION=1.8.0.121-2
2017-03-31 17:09:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_ZIP=java-1.8.0-openjdk-1.8.0.121-2.b13.ojdkbuild.windows.x86_64.zip
2017-03-31 17:09:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_OJDKBUILD_SHA256=99a842b88b42c049ba4ffc3b13a9b98fbdad818703750e319ae59aa717e95ad3
2017-03-31 17:10:43 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.