Skip to content

autonomy.deploy.generators.docker_compose.base

Docker-compose Deployment Generator.

build_tendermint_node_config

def build_tendermint_node_config(
        node_id: int,
        container_name: str,
        abci_node: str,
        network_name: str,
        network_address: str,
        dev_mode: bool = False,
        log_level: str = INFO,
        tendermint_ports: Optional[Dict[int, int]] = None) -> str

Build tendermint node config for docker compose.

build_agent_config

def build_agent_config(node_id: int,
                       container_name: str,
                       agent_vars: Dict,
                       runtime_image: str,
                       network_name: str,
                       network_address: str,
                       dev_mode: bool = False,
                       package_dir: Path = DEFAULT_PACKAGES_PATH,
                       open_aea_dir: Path = DEFAULT_OPEN_AEA_DIR,
                       open_autonomy_dir: Path = DEFAULT_OPEN_AUTONOMY_DIR,
                       agent_ports: Optional[Dict[int, int]] = None,
                       resources: Optional[Resources] = None) -> str

Build agent config.

Network Objects

class Network()

Class to represent network of the service.

__init__

def __init__(name: str, base: ipaddress.IPv4Network = BASE_SUBNET) -> None

Initialize.

next_subnet

@staticmethod
def next_subnet(subnet: ipaddress.IPv4Network) -> ipaddress.IPv4Network

Calculat next available subnet.

build

def build() -> ipaddress.IPv4Network

Initialize network params.

next_address

@property
def next_address() -> str

Returns the next IP address string.

DockerComposeGenerator Objects

class DockerComposeGenerator(BaseDeploymentGenerator)

Class to automate the generation of Deployments.

generate_config_tendermint

def generate_config_tendermint() -> "DockerComposeGenerator"

Generate the command to configure tendermint testnet.

generate

def generate(image_version: Optional[str] = None,
             use_hardhat: bool = False,
             use_acn: bool = False) -> "DockerComposeGenerator"

Generate the new configuration.

populate_private_keys

def populate_private_keys() -> "DockerComposeGenerator"

Populate the private keys to the build directory for docker-compose mapping.