def flocker_container_agent_main():
    def deployer_factory(cluster_uuid, **kwargs):
        return ApplicationNodeDeployer(**kwargs)
    service_factory = AgentServiceFactory(
        deployer_factory=deployer_factory
    ).get_service
    agent_script = AgentScript(service_factory=service_factory)

    # Use CPU time instead of wallclock time.
    pr = cProfile.Profile(clock)

    signal.signal(signal.SIGUSR1, partial(enable_profiling, pr))
    signal.signal(signal.SIGUSR2, partial(disable_profiling, pr, 'container'))

    return FlockerScriptRunner(
        script=agent_script,
        options=ContainerAgentOptions()
    ).main()
Implementation of the ``flocker-container-agent`` command line script.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/script.py/flocker_container_agent_main