Skip to content

Build a Flower Client Image

Call function.run(action="build", ...) to build the Flower client image.

Parameters

Name Type Required Description
action str ✓ Action to execute. Must be build.
volumes list[dict] List of volumes for the build.
resources dict Resource limits and requests for the build.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.
instructions list[str] Custom instructions to execute during the container build.
superlink str Flower SuperLink service endpoint.
node_config dict Flower client node configuration.
root_certificates str Root certificate content for secure communication.
private_key_secret str Secret containing the private key for secure communication.
public_key_secret str Secret containing the public key for secure communication.
isolation str Isolation mode: process or subprocess.

Example

run = function.run(
    action="build",
    instructions=["pip install -r requirements.txt"],
)