Skip to content

Add container with SDK and scancode preinstalled #48622

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Winniexu01
Copy link
Member

Fixes dotnet/source-build#3816

Add the specifially container image with .NET SDK and scancode preinstalled.
Related to dotnet/dotnet-buildtools-prereqs-docker#1408

@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 11:30
@Winniexu01 Winniexu01 requested review from a team as code owners April 22, 2025 11:30
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Apr 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a container image with the .NET SDK and scancode preinstalled to address issue dotnet/source-build#3816.

  • Added a new container definition named "ubuntusdkamd64container" with the appropriate image.
  • Updated the LicenseScan job to reference a container and removed redundant installation steps for the .NET SDK and scancode.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: public/dotnet-public-pypi
onlyAddExtraIndex: false

- script: $(sdkRoot)/eng/install-scancode.sh
Copy link
Member

Choose a reason for hiding this comment

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

Is anything still using this file, can it be removed?

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 searched for the keyword "scancode" in the source build repository and found that only the license scan test is using this toolkit.

Copy link
Member

Choose a reason for hiding this comment

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

Does that confirm that it can be removed with this PR?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that script file should be deleted.

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 thought I had removed this file in the previous update to the PR, but it looks like I missed it. I 've now included the update: f18dd2f

@@ -52,6 +52,9 @@ extends:
name: NetCore1ESPool-Svc-Internal
image: 1es-ubuntu-2204
os: linux
containers:
ubuntusdkamd64container:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ubuntusdkamd64container:
ubuntuSdkAmd64Container:

Comment on lines 118 to 122
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: public/dotnet-public-pypi
onlyAddExtraIndex: false
Copy link
Member

Choose a reason for hiding this comment

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

This isn't needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container image with scancode preinstalled
3 participants