@@ -50,13 +50,12 @@ def _install_WfCommons_on_container(container):
5050 tar_data = _make_tarfile_of_wfcommons ()
5151 container .put_archive (target_path , tar_data )
5252 # Cleanup files that came from the host
53- exit_code , output = container .exec_run ("sudo chown -R wfcommons:wfcommons /tmp/WfCommons" , user = "wfcommons" , stdout = True , stderr = True )
54- exit_code , output = container .exec_run ("/bin/rm -rf /tmp/WfCommons/build/" , user = "wfcommons" , stdout = True , stderr = True )
55- exit_code , output = container .exec_run ("/bin/rm -rf /tmp/WfCommons/*.egg-info/" , user = "wfcommons" , stdout = True , stderr = True )
53+ exit_code , output = container .exec_run ("sudo /bin/rm -rf /tmp/WfCommons/build/" , user = "wfcommons" , stdout = True , stderr = True )
54+ exit_code , output = container .exec_run ("sudo /bin/rm -rf /tmp/WfCommons/*.egg-info/" , user = "wfcommons" , stdout = True , stderr = True )
5655 # Clean up and force a rebuild of cpu-benchmark (because it may be compiled for the wrong architecture)
57- exit_code , output = container .exec_run ("/bin/rm -rf /tmp/WfCommons/bin/cpu-benchmark.o" , user = "wfcommons" , stdout = True ,
56+ exit_code , output = container .exec_run ("sudo /bin/rm -rf /tmp/WfCommons/bin/cpu-benchmark.o" , user = "wfcommons" , stdout = True ,
5857 stderr = True )
59- exit_code , output = container .exec_run ("/bin/rm -rf /tmp/WfCommons/bin/cpu-benchmark" , user = "wfcommons" , stdout = True ,
58+ exit_code , output = container .exec_run ("sudo /bin/rm -rf /tmp/WfCommons/bin/cpu-benchmark" , user = "wfcommons" , stdout = True ,
6059 stderr = True )
6160
6261 # Install WfCommons on the container (to install wfbench and cpu-benchmark really)
@@ -114,12 +113,6 @@ def _start_docker_container(backend, mounted_dir, working_dir, bin_dir, command=
114113 else :
115114 sys .stderr .write (f"[{ backend } ] Not Copying wfbench and cpu-benchmark...\n " )
116115
117- # Change file permissions
118- exit_code , output = container .exec_run (["sh" , "-c" , "sudo chown -R wfcommons:wfcommons ." ],
119- user = "wfcommons" ,
120- stdout = True , stderr = True )
121-
122-
123116 container .backend = backend
124117 return container
125118
0 commit comments