Skip to content

Commit

Permalink
Merge pull request #222 from guydavis/develop
Browse files Browse the repository at this point in the history
Support paths in Worker volume paths.
  • Loading branch information
guydavis authored Aug 13, 2021
2 parents 0e96125 + 16d0a61 commit 87b92d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions web/templates/worker_launch.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down
10 changes: 2 additions & 8 deletions web/templates/workers.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,10 @@
</table>

<fieldset>
<div class="row g-3">
<div class="col-sm">
<button form="workers-form" type="submit" name="action" value="prune" class="btn btn-outline-success"
id="btnPrune" title="Only deletes status of selected worker(s).">Prune Selected</button>
</div>
<div class="col-sm-1">
<button type="button" class="text-right btn btn-outline-success"
onclick="WorkerLaunch(); return false">New</button>
</div>
</div>
<button type="button" class="btn btn-outline-success"
onclick="WorkerLaunch(); return false">New Worker</button>
</fieldset>
</form>

Expand Down

0 comments on commit 87b92d3

Please sign in to comment.