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

[YUNIKORN-2438] Shim: Add license files to Docker images #793

Closed
wants to merge 2 commits into from

Conversation

craigcondit
Copy link
Contributor

What is this PR for?

Add infrastructure to bundle NOTICE/LICENSE and third-party license files.

Two new Makefile targets are added:

  • go-license-check: Check all dependencies for unauthorized licenses
  • go-license-generate: Retrieve license files for 3rd party components and save to build/third-party-licenses/ directory

The generated license files depend on go.mod / go.sum and will be used as input to the Docker image generation.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2438

How should this be tested?

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

Add infrastructure to bundle NOTICE/LICENSE and third-party license files.

Two new Makefile targets are added:

- go-license-check: Check all dependencies for unauthorized licenses
- go-license-generate: Retrieve license files for 3rd party components and
  save to build/third-party-licenses/ directory

The generated license files depend on go.mod / go.sum and will be used as
input to the Docker image generation.
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (766afd0) 71.55% compared to head (25100d8) 71.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #793      +/-   ##
==========================================
+ Coverage   71.55%   71.62%   +0.06%     
==========================================
  Files          43       43              
  Lines        6332     6332              
==========================================
+ Hits         4531     4535       +4     
+ Misses       1599     1596       -3     
+ Partials      202      201       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@craigcondit craigcondit deleted the YUNIKORN-2438 branch February 22, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants