-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update base image of 5.0 SDK for Alpine and Nano #1832
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple overall comments.
- I don't see a technical reason why this couldn't be back-ported to 3.1. It doesn't appear to be a breaking change. It seems like a risk and ROI question.
- Because we don't have a standalone SDK and are selecting the individual components to copy to the final image, I feel there is some risk with missing components. For example the SDK adds another directory. A possible mitigation to this risk would be to have a unit test that compares the SDK zip/tarball contents against our SDK image. Thoughts?
I'll log an issue to add a test as a separate task so that it can take advantage of the changes in #1743. |
@@ -31,10 +33,16 @@ RUN $powershell_version = '7.0.0'; ` | |||
Remove-Item -Force PowerShell.Windows.x64.$powershell_version.nupkg; ` | |||
Remove-Item -Path \powershell\.store\powershell.windows.x64\$powershell_version\powershell.windows.x64\$powershell_version\powershell.windows.x64.$powershell_version.nupkg -Force | |||
|
|||
# Delete everything in the dotnet folder that's not needed in the SDK layer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like not needed in the SDK layer
should be clarified here. I don't want to give the impression the content isn't in the resulting SDK image. I'm not sure how to word this.
# Delete everything in the dotnet folder that's not needed in the SDK layer | |
# Delete the dotnet content that is not contained within the aspnet base layers. |
In order to allow for more layer sharing amongst images, the 5.0 SDK images for Alpine and Nano Server have been changed to be based on their respective ASP.NET images. This requires that the runtime and ASP.NET components of the SDK be omitted when extracting its contents since they are derived from base layers.
Fixes #1351