Skip to main content

container_adapter_for_block

Function container_adapter_for_block 

Source
pub(crate) fn container_adapter_for_block(
    cm: ContainerManager,
    block_id: &str,
    block_meta: &MetaMapType,
    env_vars: &mut HashMap<String, String>,
    working_dir: &str,
    broker: Arc<Broker>,
    filestore: Arc<FileStore>,
    mstore: Arc<Store>,
) -> ContainerAdapter
Expand description

The adapter for the container agent in block_meta: its container is readied at the start of each turn, and a turn is a docker exec in it. See ContainerStartup::for_block for what env_vars and working_dir are used for.