nvflare.lighter.cc_provision.impl.onprem_packager module

class OnPremPackager(cc_config_key='cc_config', build_image_cmd='build_cvm_image.sh')[source]

Bases: Packager

package(project: Project, ctx: ProvisionContext)[source]

Package the generated startup kits for release.

Parameters:
  • project – the project being provisioned

  • ctx – the provision context object

Returns: None

run_command(command, cwd=None)[source]
to_abs_path(yaml_path, file_path)[source]

Converts a relative file path to an absolute path based on the directory of the given YAML file.

Parameters:
  • yaml_path (str) – Path to the YAML file. Must be a non-empty string.

  • file_path (str) – Target file path. If relative, it’s resolved against the YAML file’s directory.

Returns:

An absolute file path.

Return type:

str

Raises:

RuntimeError – If either input is None or empty.