17816: Set the current working directory in the singularity container
[arvados.git] / lib / crunchrun / singularity.go
index 4bec8c3ebed11970c9f0c0734e625c5c32df2523..2a294cf03c4715c36e20230d5610eac5afbdbeaf 100644 (file)
@@ -74,7 +74,7 @@ func (e *singularityExecutor) Create(spec containerSpec) error {
 }
 
 func (e *singularityExecutor) Start() error {
-       args := []string{"singularity", "exec", "--containall", "--no-home", "--cleanenv"}
+       args := []string{"singularity", "exec", "--containall", "--no-home", "--cleanenv", "--pwd", e.spec.WorkingDir}
        if !e.spec.EnableNetwork {
                args = append(args, "--net", "--network=none")
        }