From 16d0a6120bfa60111bc6646e9c1184c62196ad10 Mon Sep 17 00:00:00 2001 From: Guy Davis Date: Thu, 12 Aug 2021 20:08:22 -0600 Subject: [PATCH] Support paths in Worker volume paths. --- web/templates/worker_launch.html | 4 ++-- web/templates/workers.html | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/web/templates/worker_launch.html b/web/templates/worker_launch.html index dfb641e7..bfd7ddeb 100644 --- a/web/templates/worker_launch.html +++ b/web/templates/worker_launch.html @@ -181,7 +181,7 @@ } else if (!volume_container_path) { errors.push("Empty container path provided for volume at '" + volume_host_path + "'. Please provide a container path."); } - cmd += ' -v ' + volume_host_path + ':' + volume_container_path + line_end; + cmd += ' -v "' + volume_host_path + ':' + volume_container_path + '"' + line_end; if ($('#volume_type' + index).val() == 'plots') { plots_dir.push(volume_container_path) } @@ -260,7 +260,7 @@ $('#volumes').children().each((index, element) => { volume_host_path = document.getElementById("volume_host_path" + index).value; volume_container_path = document.getElementById("volume_container_path" + index).value; - cmd += ' - ' + volume_host_path + ':' + volume_container_path + line_end; + cmd += ' - "' + volume_host_path + ':' + volume_container_path + '"' + line_end; if ($('#volume_type' + index).val() == 'plots') { plots_dir.push(volume_container_path) } diff --git a/web/templates/workers.html b/web/templates/workers.html index 4553af48..b7aa3dcd 100644 --- a/web/templates/workers.html +++ b/web/templates/workers.html @@ -68,16 +68,10 @@
-
-
-
-
- -
-
+