nvflare.lighter.impl.docker_launcher module

class DockerLauncherBuilder(docker_image='nvflare-docker:0.0.1', base_image='python:3.10', requirements_file='requirements.txt')[source]

Bases: Builder

DockerLauncherBuilder is used for generating the docker build command and service startup command for using the DockerJobLauncher as the job launcher (both server and client).

Build docker file.

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

Execute the main build logic for this builder.

Parameters:
  • project (Project) – The project to be provisioned.

  • ctx (ProvisionContext) – Context shared across builders.

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

Prepare the builder with any necessary pre-processing.

Parameters:
  • project (Project) – The project to be provisioned.

  • ctx (ProvisionContext) – Context shared across builders.