mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 06:10:23 -04:00
18 lines
371 B
Go
18 lines
371 B
Go
// +build !windows
|
|
|
|
package buildkit
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/moby/buildkit/executor"
|
|
"github.com/moby/buildkit/executor/runcexecutor"
|
|
)
|
|
|
|
func newExecutor(root string) (executor.Executor, error) {
|
|
return runcexecutor.New(runcexecutor.Opt{
|
|
Root: filepath.Join(root, "executor"),
|
|
CommandCandidates: []string{"docker-runc", "runc"},
|
|
})
|
|
}
|