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 SDK image first run handling #2710

Merged
merged 8 commits into from
Apr 13, 2021
Merged

Conversation

richlander
Copy link
Member

@richlander richlander commented Mar 31, 2021

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:

  1. Use SDK ENVs to describe the intent of the state we want.
  2. Ask the SDK team for a more explicit dotnet init command to better support this scenario.

This PR is step 1.

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.

The change look good. I have a couple requests.

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

@richlander richlander changed the base branch from main to nightly April 12, 2021 20:06
Copy link
Member

@mthalman mthalman left a 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?

@richlander
Copy link
Member Author

Good call. Done.

@richlander richlander merged commit 34775be into dotnet:nightly Apr 13, 2021
@richlander richlander deleted the dotnet-init branch April 13, 2021 16:39
@mthalman mthalman mentioned this pull request May 25, 2021
22 tasks
mthalman pushed a commit to mthalman/dotnet-docker that referenced this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants