-
Notifications
You must be signed in to change notification settings - Fork 217
CC provision with docker image workload #3639
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
CC provision with docker image workload #3639
Conversation
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.
Pull Request Overview
This PR introduces Docker image workload support for CC (Confidential Computing) provision to provide a generic way to accommodate different applications. The changes enable building Docker images for each participant during the provision process instead of relying on pre-installed packages.
- Adds a new DockerImageBuilder class to generate Dockerfiles and build scripts for each site
- Modifies the OnPremPackager to build Docker images during packaging
- Updates CC configuration to use workload images instead of pre-installed packages
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| nvflare/tool/code_pre_installer/install.py | Makes install_requirements function private by adding underscore prefix |
| nvflare/lighter/impl/docker_image_builder.py | New builder class that generates Dockerfiles and build scripts for each participant |
| nvflare/lighter/cc_provision/impl/onprem_packager.py | Adds Docker image building step to the packaging process |
| examples/advanced/cc_provision/project.yml | Updates configuration to use DockerImageBuilder and comments out cc_config |
| examples/advanced/cc_provision/cc_site-1.yml | Removes nvflare package installation config, adds workload_image specification |
| examples/advanced/cc_provision/cc_server1.yml | Removes nvflare package installation config, adds workload_image specification |
| examples/advanced/cc_provision/Dockerfile.base | Base Dockerfile template for building participant images |
Comments suppressed due to low confidence (1)
nvflare/lighter/cc_provision/impl/onprem_packager.py:1
- The function no longer returns result.stdout after the changes, but there may be callers expecting a return value. This could break existing functionality that depends on the command output.
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1c504df to
2a4f577
Compare
|
@YuanTingHsieh any changes on this required with latest CC build scripts ( MR merged) |
f2261d2 to
493ebbd
Compare
493ebbd to
b2b94bf
Compare
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.
need discussion
b35ab63 to
f84fc66
Compare
ae45536 to
7887fa4
Compare
|
/build |
|
/build |
|
/build |
1 similar comment
|
/build |
CC provision with docker image workload for a generic way to accommodate different applications in the future ### Description CC provision with docker image workload for a generic way to accommodate different applications in the future ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated. --------- Co-authored-by: Chester Chen <[email protected]>
CC provision with docker image workload for a generic way to accommodate different applications in the future ### Description CC provision with docker image workload for a generic way to accommodate different applications in the future ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated. --------- Co-authored-by: Chester Chen <[email protected]>
CC provision with docker image workload for a generic way to accommodate different applications in the future
Description
CC provision with docker image workload for a generic way to accommodate different applications in the future
Types of changes
./runtest.sh.