package bistro
A library to build and run distributed scientific workflows
Install
Dune Dependency
Authors
Maintainers
Sources
bistro-0.6.0.tbz
sha256=146177faaaa9117a8e2bf0fd60cb658662c0aa992f35beb246e6fd0766050e66
sha512=553fe0c20f236316449b077a47e6e12626d193ba1916e9da233e5526dd39090e8677277e1c79baace3bdc940cb009f25431730a8efc00ae4ed9cc42a0add9609
doc/src/bistro.engine/singularity.ml.html
Source file singularity.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
open Core_kernel open Bistro_internals open Lwt.Infix let tag = function | None -> "" | Some t -> ":" ^ t let url_of_image : Workflow.container_image -> string = function | Docker_image img -> sprintf "docker://%s%s/%s%s" (Option.value_map img.registry ~default:"" ~f:(sprintf "%s/")) img.account img.name (tag img.tag) | Singularity_image img -> sprintf "shub://%s/%s%s" img.account img.name (tag img.tag) let fetch_image img dest = let url = url_of_image img in let cmd = [| "singularity" ; "pull" ; dest ; url |] in Lwt_process.exec ~stderr:`Dev_null ~stdout:`Dev_null ("", cmd) >>= function | WEXITED 0 -> Lwt_result.return () | WEXITED n | WSIGNALED n | WSTOPPED n -> Lwt_result.fail (`Singularity_failed_pull (n, url))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>