Skip to content
Permalink
Browse files

Update Dockerfile

  • Loading branch information
pcaskey committed Dec 20, 2018
1 parent 86a3787 commit 0bd21bf819a2ffcc48fcbb93170de1888851f9f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 Dockerfile
@@ -1,11 +1,11 @@
FROM microsoft/iis

ENV SP_VERSION=3.0.2.0
ENV SP_VERSION=3.0.3.0
RUN powershell [Environment]::SetEnvironmentVariable('SP_VERSION','%SP_VERSION%', [System.EnvironmentVariableTarget]::Machine )

#install shibb sp
RUN powershell (new-object System.Net.WebClient).Downloadfile('https://shibboleth.net/downloads/service-provider/latest/win64/shibboleth-sp-%SP_VERSION%-win64.msi', 'C:\shibboleth-sp-%SP_VERSION%-win64.msi')
RUN powershell If ((Get-FileHash C:\shibboleth-sp-%SP_VERSION%-win64.msi -Algorithm SHA1).Hash.ToLower() -eq '4b9dcafb46ddc00849ccea96961d3fbb95bbd544') { ` \
RUN powershell If ((Get-FileHash C:\shibboleth-sp-%SP_VERSION%-win64.msi -Algorithm SHA1).Hash.ToLower() -eq '7e185c286ad81ce0b3c27210070ce74998eaf933') { ` \
start-process -filepath c:\windows\system32\msiexec.exe -passthru -wait -argumentlist '/i','C:\shibboleth-sp-%SP_VERSION%-win64.msi','/qn' ` \
} Else { throw 'bad hash comparison on SP download' }
RUN del C:\shibboleth-sp-%SP_VERSION%-win64.msi

0 comments on commit 0bd21bf

Please sign in to comment.
You can’t perform that action at this time.