From 866ac8bd33552220d2b2b60ad0a3f9f154de7ec7 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Fri, 4 Aug 2017 09:46:26 -0700 Subject: [PATCH] remove hash validation from nanoserver-insider. We are using HTTPS from the same location we are getting the dockerfile from, it should be enough --- docker/release/nanoserver-insider/Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docker/release/nanoserver-insider/Dockerfile b/docker/release/nanoserver-insider/Dockerfile index aaa337c4e37..62b2b16fc79 100755 --- a/docker/release/nanoserver-insider/Dockerfile +++ b/docker/release/nanoserver-insider/Dockerfile @@ -11,16 +11,11 @@ FROM ${WindowsServerCoreRepo}:$WindowsServerCoreVersion AS installer-env # Arguments for installing powershell, must be defined in the container they are used ARG PS_VERSION=6.0.0-beta.5 -ARG PS_DOWNLOAD_SHA=DAB8CC377D1BADD91688AEC9277D7696CC8DB2C25CECBCC934BD91AA7C724901 ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win10-win2016-x64.zip SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] RUN Invoke-WebRequest $Env:PS_DOWNLOAD_URL -OutFile powershell.zip -RUN if ((Get-FileHash powershell.zip -Algorithm sha256).Hash -ne $Env:PS_DOWNLOAD_SHA) { ` - Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` - exit 1; ` - } RUN Expand-Archive powershell.zip -DestinationPath \PowerShell