Closed shirhatti closed 7 years ago
New-IISSite -Name test4 -PhysicalPath C:\inetpub\wwwroot\test3 -BindingInformation "*:1234:"
Start-IISCommitDelay
$a = get-iissite -Name test4
$a.Applications["/"].ApplicationPoolName = ".NET v2.0"
Stop-IISCommitDelay
hi shirhatti, my dockerfile is below,
microsoft/iis
image.FROM microsoft/iis
MAINTAINER RM from rainmaker_ho@gss.com.tw
ADD dotnetframework /build RUN DISM /Online /Add-Package /PackagePath:C:\build\microsoft-windows-netfx3-ondemand-package.cab & del C:\build\microsoft-windows-netfx3-ondemand-package.cab RUN powershell -Command Add-WindowsFeature Web-Asp-Net
RUN mkdir C:\randomanswers
RUN powershell -NoProfile -Command \ Import-module IISAdministration; \ New-IISSite -Name test4 -PhysicalPath C:\randomanswers -BindingInformation "*:8000:"
RUN powershell Start-IISCommitDelay RUN powershell $a = get-iissite -Name test4 RUN powershell $a.Applications.Count RUN powershell $a.Applications[\"/\"].ApplicationPoolName = ".NET v2.0" RUN powershell Stop-IISCommitDelay
when build it, $a.Applications.Count 's value is 0. so ... $a.Applications[\"/\"].ApplicationPoolName = ".NET v2.0" will cause error.
@shhsu Could you take a look?
@rainmakerho
This docker file has several problems and will definitely not work.
Also, please open a new issue for this if you have further questions. Feel free to assign it to me. This issue is not for tracking general questions
Fixed by #20
The default AppPool should be changed to a v2.0 AppPool