Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Default AppPool in 3.5 image is incorrect #4

Closed
shirhatti opened this issue Oct 5, 2016 · 5 comments
Closed

Default AppPool in 3.5 image is incorrect #4

shirhatti opened this issue Oct 5, 2016 · 5 comments

Comments

@shirhatti
Copy link
Contributor

The default AppPool should be changed to a v2.0 AppPool

@shirhatti
Copy link
Contributor Author

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 

@rainmakerho
Copy link

rainmakerho commented Jan 5, 2017

hi shirhatti,
my dockerfile is below,

extending the microsoft/iis image.

FROM microsoft/iis

MAINTAINER RM from rainmaker_ho@gss.com.tw

Setup

將 dotnetframework 目錄中的檔案 Copy 到 container 的 build 目錄之中

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

configure the new site in IIS.

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.

@shirhatti
Copy link
Contributor Author

@shhsu Could you take a look?

@shhsu
Copy link

shhsu commented Jan 5, 2017

@rainmakerho

This docker file has several problems and will definitely not work.

  • Is there a reason why you are trying to install .net 3.5 on your image? Is it a .net 3.5 site?
  • can you follow the instruction on the main page? You want to copy the proper docker file to your C:\randomanswers and build your image form there.

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

@shirhatti
Copy link
Contributor Author

Fixed by #20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants