2019-09-11 20:06:45 UTC
5.52 GB
C:\openjdk-12
JAVA_SHA256a30bed3d6d62f6ae1052aaf3c6956aaee8e3deb2f50f155575112f3f29411fba
JAVA_URLhttps://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_windows-x64_bin.zip
JAVA_VERSION12.0.2
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 68.68% (3.79 GB)
[#001] sha256:921b2cb8ef3f601b774ce4ed84167533b39452ad2cd00bfc96e0a8246b85067d - 27.81% (1.53 GB)
[#002] sha256:9c27d6a8496c69f504b71605531315ad82ca966c381f000f90aa1407c3763592 - 0.0% (1.18 KB)
[#003] sha256:870bfbd188d550f00926135d7be48c90d34a51fb55cb8db8ad81365da1f0f448 - 0.09% (5.11 MB)
[#004] sha256:154aa6d30d026408c1b9bce1d7bb144b42f0dd4c6d6cda075bc96250d115ea6e - 0.0% (1.19 KB)
[#005] sha256:87a353dec8053878ad3264ad7aab4f659537e20cc19bf3a273fa9731b7fd7732 - 0.09% (5.08 MB)
[#006] sha256:e0200781a4a4cdd44a2578930c01ccfb32ba7ce5e885c37d706ad5ece96ac30b - 0.0% (1.18 KB)
[#007] sha256:f687511afb06f95b093ca7f894c94ca9995b362fcd239e13e2f0e4a7e97fe290 - 0.0% (1.18 KB)
[#008] sha256:da51b456c68e3b23d1c9e20b2f6c274ea7bf0ba334713adc3ce9e763fefa4672 - 0.0% (1.18 KB)
[#009] sha256:45602b611c96581e58b43ca09b064f4a25f41e888fbd6781302a75b29f2be87f - 3.33% (188 MB)
[#010] sha256:5e33d8562c145d06a33d1e7c91163af7affe4c5b557e6c20a5f82b5e7cab9074 - 0.0% (1.15 KB)
Apply image 1607-RTM-amd64
2019-08-30 15:00:00 UTCInstall update ltsc2016-amd64
2019-09-11 12:43:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2019-09-11 18:42:43 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-09-11 20:03:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-12
2019-09-11 20:04:10 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-09-11 20:04:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=12.0.2
2019-09-11 20:04:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_windows-x64_bin.zip
2019-09-11 20:04:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=a30bed3d6d62f6ae1052aaf3c6956aaee8e3deb2f50f155575112f3f29411fba
2019-09-11 20:06:41 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-09-11 20:06:45 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.