def test_create_container(): assertSetup() c = Client() # guess config cid = c.create_container("busybox") c.remove_container(cid, force=True)
def create_container(api, yt_url): c = Client("./hyper_config.json") # working_dir="/tmp" container = c.create_container(labels={"sh_hyper_instancetype": "s3", 'sh_hyper_noauto_volume': 'true'}, image="1dcb5ad1", command='python3 process_file.py "{yt_url}" "{api_url}"'.format(yt_url=yt_url, api_url=api)) response = c.start(container=container.get("Id")) return container.get("Id")