-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[None][infra] Add container notices and documentation #9185
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
Merged
chzblych
merged 5 commits into
NVIDIA:main
from
pdrake-nv:user/pdrake-nv-container-notices
Dec 4, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bd6f3bb
Preserve ucx source code in third-party-source
pdrake-nv 2dd7c07
Adding notices.txt for container source archive in built images
pdrake-nv 8d4f0cb
Adding documentation for container source
pdrake-nv 1ba54ab
Per review, renaming container notice generation script
pdrake-nv 7f6a1cf
Per review, updating content of container notice file
pdrake-nv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Container Source Notices | ||
|
|
||
| A `NOTICES.txt` file containing a link to the open source archive for a given container can be found at `/` in both the `release` and `devel` images. | ||
|
|
||
| Generally, source archives for each image and its tags can be found at the below links: | ||
|
|
||
| * [TensorRT-LLM Release](https://opensource.nvidia.com/oss/teams/nvidia/release/index.html) | ||
| * [TensorRT-LLM Develop](https://opensource.nvidia.com/oss/teams/nvidia/devel/index.html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| # Generate open source attribution file with parameterized URL | ||
| # Usage: ./generate_container_oss_attribution.sh <image_name> <tag> <arch> [output_file] | ||
|
|
||
| show_usage() { | ||
| local error_msg="${1}" | ||
|
|
||
| if [ -n "${error_msg}" ]; then | ||
| echo "ERROR: ${error_msg}" | ||
| echo "" | ||
| fi | ||
|
|
||
| echo "Usage: $0 <image_name> <tag> <arch> [output_file]" | ||
| echo "" | ||
| echo "Arguments:" | ||
| echo " image_name - Name of the image (e.g., tensorrt-llm)" | ||
| echo " tag - Image tag/version (e.g., 1.0.0)" | ||
| echo " arch - Architecture (e.g., amd64, arm64)" | ||
| echo " output_file - Optional output file path (default: /third-party-source/NOTICE.txt)" | ||
pdrake-nv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| echo "" | ||
| echo "Example:" | ||
| echo " $0 tensorrt-llm 1.0.0 amd64" | ||
| echo "" | ||
| exit 1 | ||
| } | ||
|
|
||
| IMAGE_NAME="${1}" | ||
| TAG="${2}" | ||
| ARCH="${3}" | ||
| OUTPUT_FILE="/NOTICE.txt" | ||
|
|
||
| # Validate required parameters | ||
| [ -z "${IMAGE_NAME}" ] && show_usage "Missing required parameter IMAGE_NAME" | ||
| [ -z "${TAG}" ] && show_usage "Missing required parameter TAG" | ||
| [ -z "${ARCH}" ] && show_usage "Missing required parameter ARCH" | ||
|
|
||
| # Construct the URL | ||
| ROOT_URL="https://opensource.nvidia.com/oss/teams/nvidia" | ||
| OSS_URL="${ROOT_URL}/${IMAGE_NAME}/${TAG}:linux-${ARCH}/index.html" | ||
pdrake-nv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Create output directory if needed | ||
| OUTPUT_DIR="$(dirname "${OUTPUT_FILE}")" | ||
| mkdir -p "${OUTPUT_DIR}" | ||
|
|
||
| # Generate the attribution file | ||
| cat > "${OUTPUT_FILE}" << EOF | ||
| This container image includes open-source software whose source code is archived in the /third-party-source directory or at ${OSS_URL}. | ||
|
|
||
| For further inquiries or assistance, contact us at [email protected] | ||
| EOF | ||
|
|
||
| echo "✓ Attribution file generated: ${OUTPUT_FILE}" | ||
| echo " URL: ${OSS_URL}" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.