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

Parse User and Port Container Metadata from special environment variables #34154

Merged
merged 11 commits into from
Aug 1, 2023

Conversation

baronfel
Copy link
Member

Fixes dotnet/sdk-container-builds#478
Fixes dotnet/sdk-container-builds#479

User Id and Ports can be set explicitly (through user-specified MSBuild properties), but also implicitly via container environment variables. These can even be set by the base images that users use.

When we encounter these environment variables, we should apply them to the container configuration.

@baronfel baronfel requested a review from a team as a code owner July 21, 2023 02:53
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Containers Related to dotnet SDK containers functionality untriaged Request triage from a team member labels Jul 21, 2023
@baronfel baronfel force-pushed the parse-ports-and-uid-from-env branch from e3ece63 to 915fe51 Compare July 21, 2023 03:00
Copy link
Member Author

@baronfel baronfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few notes about the implementation

@baronfel baronfel removed the untriaged Request triage from a team member label Jul 27, 2023
@baronfel baronfel force-pushed the parse-ports-and-uid-from-env branch from 6be96d5 to 9ce576b Compare July 28, 2023 02:05
@baronfel
Copy link
Member Author

The test failures are in C++/CLI test projects and have failed in other PRs, so shouldn't be considered as part of this.

Copy link
Member

@vlada-shubina vlada-shubina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, couple of minor comments inline

@baronfel baronfel merged commit 2d49631 into dotnet:main Aug 1, 2023
16 checks passed
@baronfel baronfel deleted the parse-ports-and-uid-from-env branch August 1, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Containers Related to dotnet SDK containers functionality
Projects
None yet
2 participants