Skip to content

autonomy.deploy.base

Base deployments module.

ServiceSpecification Objects

class ServiceSpecification()

Class to assist with generating deployments.

__init__

def __init__(service_path: Path, keys: Path, number_of_agents: Optional[int] = None, private_keys_password: Optional[str] = None, agent_instances: Optional[List[str]] = None, log_level: str = INFO, substitute_env_vars: bool = False) -> None

Initialize the Base Deployment.

read_keys

def read_keys(file_path: Path) -> None

Read in keys from a file on disk.

process_model_args_overrides

def process_model_args_overrides(agent_n: int) -> Dict

Generates env vars based on model overrides.

generate_agents

def generate_agents() -> List

Generate multiple agent.

generate_common_vars

def generate_common_vars(agent_n: int) -> Dict

Retrieve vars common for valory apps.

generate_agent

def generate_agent(agent_n: int, override_idx: Optional[int] = None) -> Dict[Any, Any]

Generate next agent.

BaseDeploymentGenerator Objects

class BaseDeploymentGenerator()

Base Deployment Class.

__init__

def __init__(service_spec: ServiceSpecification, build_dir: Path, dev_mode: bool = False, packages_dir: Optional[Path] = None, open_aea_dir: Optional[Path] = None, open_autonomy_dir: Optional[Path] = None)

Initialise with only kwargs.

generate

@abc.abstractmethod
def generate(image_version: Optional[str] = None) -> "BaseDeploymentGenerator"

Generate the deployment configuration.

generate_config_tendermint

@abc.abstractmethod
def generate_config_tendermint() -> "BaseDeploymentGenerator"

Generate the deployment configuration.

populate_private_keys

@abc.abstractmethod
def populate_private_keys() -> "BaseDeploymentGenerator"

Populate the private keys to the deployment.

write_config

def write_config() -> "BaseDeploymentGenerator"

Write output to build dir

Back to top