Skip to content

Commit a89ee2a

Browse files
committed
chore(NodeAllocator): Remove node local files
1 parent c6c099f commit a89ee2a

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/hosted/NodeAllocator.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,20 +250,9 @@ ebbrt::NodeAllocator::AllocateNode(std::string binary_path,
250250
RunCmd("file " + binary_path);
251251
auto allocation_id =
252252
node_allocator->allocation_index_.fetch_add(1, std::memory_order_relaxed);
253-
auto dir = boost::filesystem::temp_directory_path();
254253
auto container_name = "ebbrt-" + std::to_string(geteuid()) + "." +
255254
std::to_string(getpid()) + "." +
256255
std::to_string(allocation_id);
257-
// cid file
258-
auto cid = dir / boost::filesystem::unique_path();
259-
if (boost::filesystem::exists(cid)) {
260-
throw std::runtime_error(
261-
"Failed to create container id temporary file name");
262-
}
263-
264-
// TODO(dschatz): make this asynchronous?
265-
boost::filesystem::create_directories(dir);
266-
267256
std::stringstream docker_args;
268257
std::stringstream qemu_args;
269258
#ifndef NDEBUG
@@ -286,7 +275,6 @@ ebbrt::NodeAllocator::AllocateNode(std::string binary_path,
286275
<< " -e VM_WAIT=true"
287276
<< " -e VM_MEM=" << std::to_string(args.ram) << "G"
288277
<< " -e VM_CPU=" << std::to_string(args.cpus)
289-
<< " --cidfile=" << cid.native()
290278
<< " --name='" << container_name
291279
<< "' ";
292280

0 commit comments

Comments
 (0)