-
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 SDK image first run handling #2710
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.
The change look good. I have a couple requests.
- Can you make this PR against nightly? We should not be making this change in main without a tag change even though 6.0 is in preview.
- Can update the SDK ENV tests to ensure the variables and values to not regress - https://github.com/dotnet/dotnet-docker/blob/main/tests/Microsoft.DotNet.Docker.Tests/SdkImageTests.cs#L50
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.
@richlander - Can you update the description of this PR so that we have a record of the background and reasons for these changes?
Good call. Done. |
We reviewed the first run experience of our SDK Dockerfiles. Each one of them has a call to
dotnet help
to ensure that the first run experience is run in the Dockerfile instead of on first (which is every) run of the container.We decided to take a two step approach:
dotnet init
command to better support this scenario.This PR is step 1.