Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Apr 13, 2023

Should help with failures ingesting dotnet/runtime#84148 into aspnet: dotnet/aspnetcore#47693.

@eerhardt @agocke @jkoritzinsky PTAL

@ghost ghost added the untriaged label Apr 13, 2023
@ghost
Copy link

ghost commented Apr 13, 2023

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@eerhardt eerhardt requested review from richlander and mthalman April 13, 2023 21:07
Comment on lines 4 to 7
# Provides useradd, needed by Azure DevOps
shadow-utils \
# Provides su, needed by Azure DevOps
util-linux \
Copy link
Member

Choose a reason for hiding this comment

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

What exactly does needed by Azure DevOps mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

Azure Devops runs some commands in the container before executing the .yml steps. These prereqs are vaguely mentioned in https://learn.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops#linux-based-containers:

USER has access to groupadd and other privileges commands without sudo

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I guess I thought the issue I was seeing in ASP.NET was because we explicitly call useradd:

https://github.com/dotnet/aspnetcore/blob/7a0d0de38dbb729b823115d60d2d9ac691d8c292/eng/docker/rhel.Dockerfile#L12

But note we are running the docker build/run ourselves in the pipeline. Not using AzDO's docker capability.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, then I misread the failure. Azure DevOps does something similar, but if you're not using the AzDO container capability, you might actually not need util-linux.

Copy link
Member Author

Choose a reason for hiding this comment

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

@sbomer
Copy link
Member Author

sbomer commented Apr 13, 2023

I don't have merge permission - can someone who does please merge?

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.

5 participants