comparison toolfactory/rgToolFactory2.py @ 104:05cb28bf2bbc draft

Uploaded
author fubar
date Fri, 27 Nov 2020 23:10:36 +0000
parents 2ca51677d6d1
children 373e1f9cb609
comparison
equal deleted inserted replaced
103:2ca51677d6d1 104:05cb28bf2bbc
739 client = docker.from_env() 739 client = docker.from_env()
740 tvol = client.volumes.create() 740 tvol = client.volumes.create()
741 tvolname = tvol.name 741 tvolname = tvol.name
742 destdir = "/toolfactory/ptest" 742 destdir = "/toolfactory/ptest"
743 imrep = os.path.join(destdir,repname) 743 imrep = os.path.join(destdir,repname)
744 container = client.containers.run(planemoimage,'sleep 10000m', detach=True, user="biodocker", 744 #container = client.containers.run(planemoimage,'sleep 10000m', detach=True, user="biodocker",
745 container = client.containers.run(planemoimage, detach=True, user="biodocker",
745 network="host", volumes={f"{tvolname}": {'bind': '/toolfactory', 'mode': 'rw'}}) 746 network="host", volumes={f"{tvolname}": {'bind': '/toolfactory', 'mode': 'rw'}})
746 cl = f"groupmod -g {dgroup} docker" 747 cl = f"groupmod -g {dgroup} docker"
747 prun(container, tout, cl, user="root") 748 prun(container, tout, cl, user="root")
748 cl = f"mkdir -p {destdir}" 749 cl = f"mkdir -p {destdir}"
749 prun(container, tout, cl, user="root") 750 prun(container, tout, cl, user="root")