From bd6f3bb5ee6d41f06bc655131e56b136c3abecb1 Mon Sep 17 00:00:00 2001 From: Parker Drake Date: Fri, 14 Nov 2025 16:28:56 -0800 Subject: [PATCH 1/5] Preserve ucx source code in third-party-source Signed-off-by: Parker Drake --- docker/common/install_ucx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/common/install_ucx.sh b/docker/common/install_ucx.sh index 2807182bd8e..55da81e2c2c 100644 --- a/docker/common/install_ucx.sh +++ b/docker/common/install_ucx.sh @@ -6,8 +6,11 @@ UCX_INSTALL_PATH="/usr/local/ucx/" CUDA_PATH="/usr/local/cuda" UCX_REPO="https://github.com/openucx/ucx.git" +mkdir -p /third-party-source + rm -rf ${UCX_INSTALL_PATH} git clone --depth 1 -b ${UCX_VERSION} ${UCX_REPO} +tar -czf /third-party-source/ucx-${UCX_VERSION}.tar.gz ucx cd ucx ./autogen.sh ./contrib/configure-release \ From 2dd7c07a832f9485b37ed6adca6abeff38474ee5 Mon Sep 17 00:00:00 2001 From: Parker Drake Date: Fri, 14 Nov 2025 16:30:19 -0800 Subject: [PATCH 2/5] Adding notices.txt for container source archive in built images Signed-off-by: Parker Drake --- docker/Dockerfile.multi | 12 +++++++ scripts/generate_oss_attribution.sh | 56 +++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100755 scripts/generate_oss_attribution.sh diff --git a/docker/Dockerfile.multi b/docker/Dockerfile.multi index 32d5af85ced..6793a70d4bb 100644 --- a/docker/Dockerfile.multi +++ b/docker/Dockerfile.multi @@ -80,6 +80,13 @@ RUN GITHUB_MIRROR=${GITHUB_MIRROR} bash ./install_ucx.sh && \ rm install_nixl.sh && \ rm install_etcd.sh +# Generate OSS attribution file for devel image +ARG TRT_LLM_VER +ARG TARGETARCH +COPY scripts/generate_oss_attribution.sh /tmp/generate_oss_attribution.sh +RUN bash /tmp/generate_oss_attribution.sh "devel" "${TRT_LLM_VER}" "${TARGETARCH}" && \ + rm /tmp/generate_oss_attribution.sh + FROM ${TRITON_IMAGE}:${TRITON_BASE_TAG} AS triton FROM devel AS tritondevel @@ -167,9 +174,14 @@ RUN chmod -R a+w examples && \ ARG GIT_COMMIT ARG TRT_LLM_VER +ARG TARGETARCH ENV TRT_LLM_GIT_COMMIT=${GIT_COMMIT} \ TRT_LLM_VERSION=${TRT_LLM_VER} +# Generate OSS attribution file for release image +COPY scripts/generate_oss_attribution.sh /tmp/generate_oss_attribution.sh +RUN bash /tmp/generate_oss_attribution.sh "release" "${TRT_LLM_VER}" "${TARGETARCH}" && rm /tmp/generate_oss_attribution.sh + FROM wheel AS tritonbuild WORKDIR /src/tensorrt_llm diff --git a/scripts/generate_oss_attribution.sh b/scripts/generate_oss_attribution.sh new file mode 100755 index 00000000000..0ee7c9880b7 --- /dev/null +++ b/scripts/generate_oss_attribution.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +set -e + +# Generate open source attribution file with parameterized URL +# Usage: ./generate_oss_attribution.sh [output_file] + +show_usage() { + local error_msg="${1}" + + if [ -n "${error_msg}" ]; then + echo "ERROR: ${error_msg}" + echo "" + fi + + echo "Usage: $0 [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)" + 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" + +# Create output directory if needed +OUTPUT_DIR="$(dirname "${OUTPUT_FILE}")" +mkdir -p "${OUTPUT_DIR}" + +# Generate the attribution file +cat > "${OUTPUT_FILE}" << EOF +This distribution includes open source which is archived at the following URL: ${OSS_URL} + +For further inquiries or assistance, contact us at oss-requests@nvidia.com +EOF + +echo "✓ Attribution file generated: ${OUTPUT_FILE}" +echo " URL: ${OSS_URL}" From 8d4f0cb5a8dff9229e5b37332045d1a9c2032401 Mon Sep 17 00:00:00 2001 From: Parker Drake Date: Fri, 14 Nov 2025 17:04:09 -0800 Subject: [PATCH 3/5] Adding documentation for container source Signed-off-by: Parker Drake --- CONTAINER_SOURCE.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CONTAINER_SOURCE.md diff --git a/CONTAINER_SOURCE.md b/CONTAINER_SOURCE.md new file mode 100644 index 00000000000..51ae4ac1060 --- /dev/null +++ b/CONTAINER_SOURCE.md @@ -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) From 1ba54ab6e072374820e9546f78fba30be05349cb Mon Sep 17 00:00:00 2001 From: Parker Drake Date: Mon, 1 Dec 2025 11:40:27 -0800 Subject: [PATCH 4/5] Per review, renaming container notice generation script Signed-off-by: Parker Drake --- docker/Dockerfile.multi | 10 +++++----- ...bution.sh => generate_container_oss_attribution.sh} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename scripts/{generate_oss_attribution.sh => generate_container_oss_attribution.sh} (94%) diff --git a/docker/Dockerfile.multi b/docker/Dockerfile.multi index 6793a70d4bb..3d5aee7268b 100644 --- a/docker/Dockerfile.multi +++ b/docker/Dockerfile.multi @@ -83,9 +83,9 @@ RUN GITHUB_MIRROR=${GITHUB_MIRROR} bash ./install_ucx.sh && \ # Generate OSS attribution file for devel image ARG TRT_LLM_VER ARG TARGETARCH -COPY scripts/generate_oss_attribution.sh /tmp/generate_oss_attribution.sh -RUN bash /tmp/generate_oss_attribution.sh "devel" "${TRT_LLM_VER}" "${TARGETARCH}" && \ - rm /tmp/generate_oss_attribution.sh +COPY scripts/generate_container_oss_attribution.sh /tmp/generate_container_oss_attribution.sh +RUN bash /tmp/generate_container_oss_attribution.sh "devel" "${TRT_LLM_VER}" "${TARGETARCH}" && \ + rm /tmp/generate_container_oss_attribution.sh FROM ${TRITON_IMAGE}:${TRITON_BASE_TAG} AS triton @@ -179,8 +179,8 @@ ENV TRT_LLM_GIT_COMMIT=${GIT_COMMIT} \ TRT_LLM_VERSION=${TRT_LLM_VER} # Generate OSS attribution file for release image -COPY scripts/generate_oss_attribution.sh /tmp/generate_oss_attribution.sh -RUN bash /tmp/generate_oss_attribution.sh "release" "${TRT_LLM_VER}" "${TARGETARCH}" && rm /tmp/generate_oss_attribution.sh +COPY scripts/generate_container_oss_attribution.sh /tmp/generate_container_oss_attribution.sh +RUN bash /tmp/generate_container_oss_attribution.sh "release" "${TRT_LLM_VER}" "${TARGETARCH}" && rm /tmp/generate_container_oss_attribution.sh FROM wheel AS tritonbuild diff --git a/scripts/generate_oss_attribution.sh b/scripts/generate_container_oss_attribution.sh similarity index 94% rename from scripts/generate_oss_attribution.sh rename to scripts/generate_container_oss_attribution.sh index 0ee7c9880b7..0dfa42d8d8b 100755 --- a/scripts/generate_oss_attribution.sh +++ b/scripts/generate_container_oss_attribution.sh @@ -3,7 +3,7 @@ set -e # Generate open source attribution file with parameterized URL -# Usage: ./generate_oss_attribution.sh [output_file] +# Usage: ./generate_container_oss_attribution.sh [output_file] show_usage() { local error_msg="${1}" From 7f6a1cf7925d0a2c1ad94174bc49fb396d1e3f7b Mon Sep 17 00:00:00 2001 From: Parker Drake Date: Mon, 1 Dec 2025 11:41:44 -0800 Subject: [PATCH 5/5] Per review, updating content of container notice file Signed-off-by: Parker Drake --- scripts/generate_container_oss_attribution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_container_oss_attribution.sh b/scripts/generate_container_oss_attribution.sh index 0dfa42d8d8b..f81a5127e2e 100755 --- a/scripts/generate_container_oss_attribution.sh +++ b/scripts/generate_container_oss_attribution.sh @@ -47,7 +47,7 @@ mkdir -p "${OUTPUT_DIR}" # Generate the attribution file cat > "${OUTPUT_FILE}" << EOF -This distribution includes open source which is archived at the following URL: ${OSS_URL} +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 oss-requests@nvidia.com EOF