Repository navigation
Add prototype of ANCM - #2868
richlander wants to merge 3 commits into
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
| $ErrorActionPreference = 'Stop'; ` | ||
| $ProgressPreference = 'SilentlyContinue'; ` | ||
| New-Item -Type Directory C:\Setup | powershell -Command Out-Null ; ` | ||
| Invoke-WebRequest 'https://download.visualstudio.microsoft.com/download/pr/2728666c-860b-4a78-ba42-8ec7b2167d42/72b9c82be95a013e2c15a1fc182e2fc4/dotnet-hosting-6.0.0-preview.4.21253.5-win.exe' -UserAgent '' -OutFile C:/setup/dotnet-hosting-2.1.3-win.exe ; ` |
There was a problem hiding this comment.
This would instead be accessed from a URL like https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$Env:ASPNET_VERSION/dotnet-hosting-$Env:ASPNET_VERSION-win.exe
|
|
||
| EXPOSE 80 | ||
|
|
||
| ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] |
There was a problem hiding this comment.
This is what I'm most unsure about. I understand that in non-IIS cases, the app's Dockerfile would override this ENTRYPOINT. I would consider that to be the typical case. And it just feels weird for the typical case to be overriding something. If someone attempts to run the aspnet image directly, what is the experience? Are they going to be guided to thinking that IIS is the way to go?
There was a problem hiding this comment.
This is a specific design question called out up top. I come to the same conclusion as you and am asking if people agree.
Yes. There hasn't exactly been a lot of churn on that front: https://github.com/microsoft/IIS.ServiceMonitor/releases |
Context: #2814
This is a WIP to determine a plan. This model works.
Open issues:
aspnetWindows Server Core image be configured to use IIS, just like the .NET Framework ASP.NET one is? That's the model I started with, not a suggestion I prefer it.servicemonitorto theaspnetimage and leave the IIS configuration to the app? That puts IIS and Kestrel on equal footing. There's asymmetry with the .NET Framework image but that's probably a fine tradeoff. That seems like the right model to me.servicemonitor? It's a hard-coded value (both here and in other Dockerfiles.Notes:
DOTNET_ROLL_FORWARDis just to make the sample work w/o changing it.Relevant .NET Framework assets:
/cc @shirhatti @BrennanConroy