Skip to content
Permalink
Newer
Older
100644 35 lines (27 sloc) 2.23 KB
1
FROM mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2016
Nov 17, 2018
2
Apr 17, 2020
3
ENV SP_VERSION=3.1.0.1
4
ARG TIERVERSION=20200417
5
Nov 17, 2018
6
RUN powershell [Environment]::SetEnvironmentVariable('SP_VERSION','%SP_VERSION%', [System.EnvironmentVariableTarget]::Machine )
7
8
#install shibb sp
9
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')
Apr 17, 2020
10
RUN powershell If ((Get-FileHash C:\shibboleth-sp-%SP_VERSION%-win64.msi -Algorithm SHA256).Hash.ToLower() -eq '1f9138254da24771073f807c8f915d76e5070df8dcf4db885be830808b21084c') { ` \
Nov 17, 2018
11
start-process -filepath c:\windows\system32\msiexec.exe -passthru -wait -argumentlist '/i','C:\shibboleth-sp-%SP_VERSION%-win64.msi','/qn' ` \
12
} Else { throw 'bad hash comparison on SP download' }
13
RUN del C:\shibboleth-sp-%SP_VERSION%-win64.msi
Apr 18, 2020
14
RUN powershell "Set-Service -Name wuauserv -StartupType Manual; Install-WindowsFeature -Name NET-Framework-Features -Verbose"
15
Nov 17, 2018
16
RUN C:\Windows\System32\inetsrv\appcmd install module /name:ShibNative32 /image:"c:\opt\shibboleth-sp\lib\shibboleth\iis7_shib.dll" /precondition:bitness32
17
RUN C:\Windows\System32\inetsrv\appcmd install module /name:ShibNative /image:"c:\opt\shibboleth-sp\lib64\shibboleth\iis7_shib.dll" /precondition:bitness64
18
COPY container_files/attribute-map.xml c:/opt/shibboleth-sp/etc/shibboleth/
19
20
#add ASP.NET and IIS svc monitor
21
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
Apr 17, 2020
22
RUN Add-WindowsFeature Web-WebServer; ` \
Apr 17, 2020
23
Add-WindowsFeature Web-Net-Ext45; ` \
24
Add-WindowsFeature Web-Asp-Net45; ` \
Nov 17, 2018
25
Remove-Item -Recurse C:\inetpub\wwwroot\*; ` \
26
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe
27
28
#healthcheck command for container state reporting
29
HEALTHCHECK --interval=1m --timeout=30s \
30
CMD powershell [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; (new-object System.Net.WebClient).DownloadString("http://127.0.0.1/Shibboleth.sso/Status")
31
32
#start both shibd and IIS
33
COPY container_files/start.bat c:/
34
ENTRYPOINT ["C:\\start.bat"]
35
You can’t perform that action at this time.