diff toolfactory/rgToolFactory2.py @ 105:373e1f9cb609 draft

Uploaded
author fubar
date Fri, 27 Nov 2020 23:17:10 +0000
parents 05cb28bf2bbc
children 6de08f44e551
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Fri Nov 27 23:10:36 2020 +0000
+++ b/toolfactory/rgToolFactory2.py	Fri Nov 27 23:17:10 2020 +0000
@@ -741,8 +741,8 @@
         tvolname = tvol.name
         destdir = "/toolfactory/ptest"
         imrep  = os.path.join(destdir,repname)
-        #container = client.containers.run(planemoimage,'sleep 10000m', detach=True, user="biodocker",
-        container = client.containers.run(planemoimage, detach=True, user="biodocker",
+        # need to keep the container running so sleep a while - we stop and destroy it when we are done
+        container = client.containers.run(planemoimage,'sleep 30m', detach=True, user="biodocker",
             network="host", volumes={f"{tvolname}": {'bind': '/toolfactory', 'mode': 'rw'}})
         cl = f"groupmod -g {dgroup} docker"
         prun(container, tout, cl, user="root")