X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d3b76845c740935f7474f535d308303c748b0b4a..a3a51578bb709f35b57ab5c35790dcd9e4e7affc:/lib/crunchrun/executor.go diff --git a/lib/crunchrun/executor.go b/lib/crunchrun/executor.go index 65bf7427b9..0a65f4d634 100644 --- a/lib/crunchrun/executor.go +++ b/lib/crunchrun/executor.go @@ -16,19 +16,20 @@ type bindmount struct { } type containerSpec struct { - Image string - VCPUs int - RAM int64 - WorkingDir string - Env map[string]string - BindMounts map[string]bindmount - Command []string - EnableNetwork bool - NetworkMode string // docker network mode, normally "default" - CgroupParent string - Stdin io.Reader - Stdout io.Writer - Stderr io.Writer + Image string + VCPUs int + RAM int64 + WorkingDir string + Env map[string]string + BindMounts map[string]bindmount + Command []string + EnableNetwork bool + CUDADeviceCount int + NetworkMode string // docker network mode, normally "default" + CgroupParent string + Stdin io.Reader + Stdout io.Writer + Stderr io.Writer } // containerExecutor is an interface to a container runtime @@ -58,4 +59,7 @@ type containerExecutor interface { // Release resources (temp dirs, stopped containers) Close() + + // Name and version of runtime engine ("docker 20.10.16", "singularity-ce version 3.9.9") + Runtime() string }