Skip to content

Commit c751f81

Browse files
authored
cp: build: Update docker file to include OSS NOTICES.txt (1544) into r0.4.0 (#1549)
Signed-off-by: Charlie Truong <[email protected]> Signed-off-by: NeMo Bot <[email protected]>
1 parent f3feb8c commit c751f81

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ FROM hermetic AS release
110110
ARG NEMO_RL_COMMIT
111111
ARG NVIDIA_BUILD_ID
112112
ARG NVIDIA_BUILD_REF
113+
ARG RC_DATE=00.00
114+
ARG TARGETARCH
113115
ENV NEMO_RL_COMMIT=${NEMO_RL_COMMIT:-<unknown>}
114116
ENV NVIDIA_BUILD_ID=${NVIDIA_BUILD_ID:-<unknown>}
115117
ENV NVIDIA_BUILD_REF=${NVIDIA_BUILD_REF:-<unknown>}
@@ -125,4 +127,6 @@ COPY --from=nemo-rl . /opt/nemo-rl
125127
# so do a quick check before trying to unshallow.
126128
RUN git rev-parse --is-shallow-repository | grep -q true && git fetch --unshallow || true
127129
RUN UV_LINK_MODE=symlink uv run nemo_rl/utils/prefetch_venvs.py
128-
130+
# NOTICES.txt file points to where the OSS source code is archived
131+
RUN echo "This distribution includes open source which is archived at the following URL: https://opensource.nvidia.com/oss/teams/nvidia/nemo-rl/${RC_DATE}:linux-${TARGETARCH}/index.html" > NOTICES.txt && \
132+
echo "For further inquiries or assistance, contact us at [email protected]" >> NOTICES.txt

docker/Dockerfile.ngc_pytorch

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ FROM hermetic AS release
111111
ARG NEMO_RL_COMMIT
112112
ARG NVIDIA_BUILD_ID
113113
ARG NVIDIA_BUILD_REF
114+
ARG RC_DATE=00.00
115+
ARG TARGETARCH
114116
ENV UV_NO_SYNC=1
115117
ENV NEMO_RL_COMMIT=${NEMO_RL_COMMIT:-<unknown>}
116118
ENV NVIDIA_BUILD_ID=${NVIDIA_BUILD_ID:-<unknown>}
@@ -130,3 +132,6 @@ COPY --from=nemo-rl . /opt/nemo-rl
130132
# so do a quick check before trying to unshallow.
131133
RUN git rev-parse --is-shallow-repository | grep -q true && git fetch --unshallow || true
132134
RUN UV_LINK_MODE=symlink uv sync --locked --inexact $UV_NO_INSTALL_PACKAGES
135+
# NOTICES.txt file points to where the OSS source code is archived
136+
RUN echo "This distribution includes open source which is archived at the following URL: https://opensource.nvidia.com/oss/teams/nvidia/nemo-rl/${RC_DATE}:linux-${TARGETARCH}/index.html" > NOTICES.txt && \
137+
echo "For further inquiries or assistance, contact us at [email protected]" >> NOTICES.txt

0 commit comments

Comments
 (0)