Skip to content

Build a Ray Execution Image

Call function.run(action="build", ...) to build the function's execution image.

Parameters

Name Type Required Description
action str ✓ Action to execute. Must be build.
volumes list[dict] List of volumes.
resources dict Resource limits and requests.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.
instructions list[str] Build instructions executed as RUN lines in the generated Dockerfile.
parameters dict Extra parameters passed to the function.
init_parameters dict Parameters supplied to the init function.

Instructions

Instructions are executed as RUN lines in the generated Dockerfile:

instructions = ["apt-get install -y git"]

Example

run = function.run(
    action="build",
    instructions=["apt-get install -y git"],
)