2019-04-12 00:42:25 UTC
3.17 GB
C:\openjdk-12
JAVA_SHA25635a8d018f420fb05fe7c2aa9933122896ca50bd23dbd373e90d8e2f3897c4e92
JAVA_URLhttps://download.java.net/java/GA/jdk12/GPL/openjdk-12_windows-x64_bin.zip
JAVA_VERSION12
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 66.76% (2.12 GB)
[#001] sha256:8c7d1531260f1f41cc711bfb3c8ab8efac981758fd7943518b863803f0b31552 - 27.2% (884 MB)
[#002] sha256:59e24a9056c00889763abd79b000344468ace59ae58ae7d17acdfcbaadd1f6e8 - 0.0% (1.18 KB)
[#003] sha256:b864d5e1e69c5a9ab357b87307521b8cf631a05627c51bed046a3a8fb129e32f - 0.14% (4.65 MB)
[#004] sha256:e2a86efc4c88cda6a9dde5b5112cc7dbd63d70df325478e6d361dfd29402699d - 0.0% (1.17 KB)
[#005] sha256:add42b81685d68d3c022138022f8bb76d295b79d29639daa7029cc920ecf19fc - 0.14% (4.56 MB)
[#006] sha256:f8d36b421ff535db1a48dc05abbdb98f4ea3a331febae63b72c7a024fbbafbf2 - 0.0% (1.17 KB)
[#007] sha256:272cc048976ccac8141fcd089a542d732cd8654462c183a36bf8c3271b464406 - 0.0% (1.17 KB)
[#008] sha256:85c36406ea178f3607d17fa28881b7b4d97eae4f3fdde53e485dd030776f7583 - 0.0% (1.17 KB)
[#009] sha256:dc30ad6759c9c4c47df3e27aa5ad32ca953a38c38d278a534fdac89fc83f1f29 - 5.76% (187 MB)
[#010] sha256:0dbe6954eeb44efa5525c25e6035d12d0a86d33a597cd76fc2b702a373e2fd9d - 0.0% (1.17 KB)
Apply image 1709-RTM-amd64
2019-04-04 00:21:24 UTCInstall update 1709-amd64
2019-04-11 22:58:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2019-04-12 00:22:45 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
2019-04-12 00:38:50 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-12
2019-04-12 00:39:51 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
2019-04-12 00:39:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=12
2019-04-12 00:39:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/GA/jdk12/GPL/openjdk-12_windows-x64_bin.zip
2019-04-12 00:39:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=35a8d018f420fb05fe7c2aa9933122896ca50bd23dbd373e90d8e2f3897c4e92
2019-04-12 00:42:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host ('Downloading {0} ...' -f $env:JAVA_URL); 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.'
2019-04-12 00:42:25 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.