Oci worker binary documentation and add missing constructor arg in runc_test

Signed-off-by: Nikhil Pandeti <nikhil.pandeti@utexas.edu>
v0.7
Nikhil Pandeti 2019-12-12 13:25:56 -06:00
parent cb237bf24e
commit 7efcee49c5
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,9 @@ insecure-entitlements = [ "network.host", "security.insecure" ]
noProcessSandbox = false noProcessSandbox = false
gc = true gc = true
gckeepstorage = 9000 gckeepstorage = 9000
binary = "" # OCI worker binary name, default binary is buildkit-runc # alternate OCI worker binary name(example 'crun'), by default either
# buildkit-runc or runc binary is used
binary = ""
[worker.oci.labels] [worker.oci.labels]
"foo" = "bar" "foo" = "bar"

View File

@ -40,7 +40,7 @@ func newWorkerOpt(t *testing.T, processMode oci.ProcessMode) (base.WorkerOpt, fu
}, },
} }
rootless := false rootless := false
workerOpt, err := NewWorkerOpt(tmpdir, snFactory, rootless, processMode, nil, nil, netproviders.Opt{Mode: "host"}, nil) workerOpt, err := NewWorkerOpt(tmpdir, snFactory, rootless, processMode, nil, nil, netproviders.Opt{Mode: "host"}, nil, "")
require.NoError(t, err) require.NoError(t, err)
return workerOpt, cleanup return workerOpt, cleanup