-
Notifications
You must be signed in to change notification settings - Fork 416
fix: Docker must redeclare args in multi-stage builds; fix path in docs #916
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
fix: Docker must redeclare args in multi-stage builds; fix path in docs #916
Conversation
Signed-off-by: Will Killian <[email protected]>
WalkthroughMultiple Dockerfiles were updated to declare build-time arguments (PYTHON_VERSION, UV_VERSION, NAT_VERSION). The root docker/Dockerfile additionally copies uv binaries from a uv image and adds a NAT_VERSION presence check during setup. Two README files update repository naming in Docker build instructions. No code interfaces were changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant Docker as Docker Builder
participant Base as Base Image
participant UVImg as ghcr.io/astral-sh/uv:${UV_VERSION}
participant Image as Build Stage
Dev->>Docker: docker build --build-arg PYTHON_VERSION --build-arg UV_VERSION --build-arg NAT_VERSION
Docker->>Base: FROM ${BASE_IMAGE}
Docker->>Image: ARG PYTHON_VERSION, UV_VERSION, NAT_VERSION
Docker->>UVImg: COPY /uv, /uvx, /bin/
UVImg-->>Image: uv toolchain binaries
Note over Image: Validate NAT_VERSION present<br/>(fail build if missing)
Docker->>Image: Run uv venv/pip setup and install
Image-->>Dev: Built image with parameterized tooling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
examples/getting_started/simple_calculator/README.md (1)
90-90: Use the canonical “NeMo Agent Toolkit” capitalization.Please capitalize “Toolkit” to match the project’s naming convention and avoid reverting to deprecated wording.
As per coding guidelines
-From the root directory of the NeMo Agent toolkit repository, build the Docker image: +From the root directory of the NeMo Agent Toolkit repository, build the Docker image:examples/evaluation_and_profiling/email_phishing_analyzer/README.md (1)
228-232: Capitalize “Toolkit” in the product namePer the documentation guidelines, the product name should appear as “NeMo Agent Toolkit.” Please capitalize “Toolkit” in the updated sentence.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
docker/Dockerfile(1 hunks)examples/evaluation_and_profiling/email_phishing_analyzer/Dockerfile(1 hunks)examples/evaluation_and_profiling/email_phishing_analyzer/README.md(1 hunks)examples/frameworks/agno_personal_finance/Dockerfile(1 hunks)examples/getting_started/simple_calculator/Dockerfile(1 hunks)examples/getting_started/simple_calculator/README.md(1 hunks)examples/getting_started/simple_web_query/Dockerfile(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/README.@(md|ipynb)
📄 CodeRabbit inference engine (.cursor/rules/general.mdc)
Ensure READMEs follow the naming convention; avoid deprecated names; use “NeMo Agent Toolkit” (capital T) in headings
Files:
examples/getting_started/simple_calculator/README.mdexamples/evaluation_and_profiling/email_phishing_analyzer/README.md
**/*
⚙️ CodeRabbit configuration file
**/*: # Code Review Instructions
- Ensure the code follows best practices and coding standards. - For Python code, follow
PEP 20 and
PEP 8 for style guidelines.- Check for security vulnerabilities and potential issues. - Python methods should use type hints for all parameters and return values.
Example:def my_function(param1: int, param2: str) -> bool: pass- For Python exception handling, ensure proper stack trace preservation:
- When re-raising exceptions: use bare
raisestatements to maintain the original stack trace,
and uselogger.error()(notlogger.exception()) to avoid duplicate stack trace output.- When catching and logging exceptions without re-raising: always use
logger.exception()
to capture the full stack trace information.Documentation Review Instructions - Verify that documentation and comments are clear and comprehensive. - Verify that the documentation doesn't contain any TODOs, FIXMEs or placeholder text like "lorem ipsum". - Verify that the documentation doesn't contain any offensive or outdated terms. - Verify that documentation and comments are free of spelling mistakes, ensure the documentation doesn't contain any
words listed in the
ci/vale/styles/config/vocabularies/nat/reject.txtfile, words that might appear to be
spelling mistakes but are listed in theci/vale/styles/config/vocabularies/nat/accept.txtfile are OK.Misc. - All code (except .mdc files that contain Cursor rules) should be licensed under the Apache License 2.0,
and should contain an Apache License 2.0 header comment at the top of each file.
- Confirm that copyright years are up-to date whenever a file is changed.
Files:
examples/getting_started/simple_calculator/README.mdexamples/frameworks/agno_personal_finance/Dockerfiledocker/Dockerfileexamples/getting_started/simple_calculator/Dockerfileexamples/evaluation_and_profiling/email_phishing_analyzer/README.mdexamples/getting_started/simple_web_query/Dockerfileexamples/evaluation_and_profiling/email_phishing_analyzer/Dockerfile
examples/**/*
⚙️ CodeRabbit configuration file
examples/**/*: - This directory contains example code and usage scenarios for the toolkit, at a minimum an example should
contain a README.md or file README.ipynb.
- If an example contains Python code, it should be placed in a subdirectory named
src/and should
contain apyproject.tomlfile. Optionally, it might also contain scripts in ascripts/directory.- If an example contains YAML files, they should be placed in a subdirectory named
configs/. - If an example contains sample data files, they should be placed in a subdirectory nameddata/, and should
be checked into git-lfs.
Files:
examples/getting_started/simple_calculator/README.mdexamples/frameworks/agno_personal_finance/Dockerfileexamples/getting_started/simple_calculator/Dockerfileexamples/evaluation_and_profiling/email_phishing_analyzer/README.mdexamples/getting_started/simple_web_query/Dockerfileexamples/evaluation_and_profiling/email_phishing_analyzer/Dockerfile
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: CI Pipeline / Check
|
/merge |
Description
ARGafterFROMstage to ensure visibility.Closes nvbugs-5561420
By Submitting this PR I confirm:
Summary by CodeRabbit
New Features
Chores
Documentation