Mercurial > repos > fubar > tool_factory_2
comparison toolfactory/rgToolFactory2.py @ 105:373e1f9cb609 draft
Uploaded
author | fubar |
---|---|
date | Fri, 27 Nov 2020 23:17:10 +0000 |
parents | 05cb28bf2bbc |
children | 6de08f44e551 |
comparison
equal
deleted
inserted
replaced
104:05cb28bf2bbc | 105:373e1f9cb609 |
---|---|
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 # need to keep the container running so sleep a while - we stop and destroy it when we are done |
745 container = client.containers.run(planemoimage, detach=True, user="biodocker", | 745 container = client.containers.run(planemoimage,'sleep 30m', detach=True, user="biodocker", |
746 network="host", volumes={f"{tvolname}": {'bind': '/toolfactory', 'mode': 'rw'}}) | 746 network="host", volumes={f"{tvolname}": {'bind': '/toolfactory', 'mode': 'rw'}}) |
747 cl = f"groupmod -g {dgroup} docker" | 747 cl = f"groupmod -g {dgroup} docker" |
748 prun(container, tout, cl, user="root") | 748 prun(container, tout, cl, user="root") |
749 cl = f"mkdir -p {destdir}" | 749 cl = f"mkdir -p {destdir}" |
750 prun(container, tout, cl, user="root") | 750 prun(container, tout, cl, user="root") |