Skip to content
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

Merged
merged 8 commits into from
Apr 14, 2020

Conversation

mthalman
Copy link
Member

@mthalman mthalman commented Apr 13, 2020

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

Copy link
Member

@MichaelSimons MichaelSimons left a 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.

  1. 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.
  2. 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?

5.0/sdk/nanoserver-1809/amd64/Dockerfile Outdated Show resolved Hide resolved
5.0/sdk/nanoserver-1809/amd64/Dockerfile Show resolved Hide resolved
@mthalman
Copy link
Member Author

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
Copy link
Member

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.

Suggested change
# 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.

3.1/sdk/nanoserver-1809/amd64/Dockerfile Outdated Show resolved Hide resolved
@mthalman mthalman merged commit ea0214f into dotnet:nightly Apr 14, 2020
@mthalman mthalman deleted the issue1351-2 branch April 14, 2020 19:31
@mthalman mthalman mentioned this pull request Apr 14, 2020
38 tasks
mthalman added a commit to mthalman/dotnet-docker that referenced this pull request Apr 23, 2020
mthalman added a commit to mthalman/dotnet-docker that referenced this pull request May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants