def spawn_docker_instances(self):
# Must create shared secret beforehand otherwise the
# testcase does not know which instances are relevant
ensure_shared_secret('cjdns')
spawn_command = "spawn --no-assimilate " \
"--server-type headless " \
"--compute-type docker"
pool = ThreadPool(self.workers)
for _ in range(self.amount_of_instances):
pool.apply_async(
run_raptiformica_command,
args=(self.temp_cache_dir, spawn_command)
)
sleep(20)
pool.close()
pool.join()
评论列表
文章目录