+ # 4. generate the volume paths for the docker container
+ volumes=list()
+ # a volume to extract log files
+ #tempfile.mkdtemp(dir="/tmp/results/%s/%s"%(self.uuid,vnf_name))
+ docker_log_path = "/tmp/results/%s/%s"%(self.uuid,vnf_name)
+ LOG.debug("LOG path for vnf %s is %s."%(vnf_name,docker_log_path))
+ #docker_log_path = tempfile.mkdtemp(dir=docker_log_path)
+ if not os.path.exists(docker_log_path):
+ os.makedirs(docker_log_path)
+ with open(docker_log_path+"/testfile", "w") as tf:
+ tf.write("placeholder")
+ tf.close()
+
+ volumes.append(docker_log_path+":/mnt/share/")
+
+
+ # 5. do the dc.startCompute(name="foobar") call to run the container