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)
 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()

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 ) 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 .