Skip to content

Commit b3ad814

Browse files
committed
Make the bwrap alias a wrapper around the sandboxexec Go bindings.
bwrap previously built its own specs.Spec, wrote an OCI bundle and drove runsc/container directly. It now only parses the bubblewrap command line and translates it into sandbox.Options; //sandboxexec/sandbox owns the bundle, the runsc invocation and the container lifecycle.
1 parent 80d712c commit b3ad814

10 files changed

Lines changed: 1037 additions & 718 deletions

File tree

runsc/cmd/alias/bwrap/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ go_library(
1818
"//pkg/log",
1919
"//runsc/cmd/util",
2020
"//runsc/config",
21-
"//runsc/container",
2221
"//runsc/flag",
2322
"//runsc/specutils",
23+
"//sandboxexec/sandbox",
2424
"@com_github_google_subcommands//:go_default_library",
2525
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
2626
"@org_golang_x_sys//unix:go_default_library",
@@ -32,6 +32,8 @@ go_test(
3232
srcs = ["bwrap_test.go"],
3333
library = ":bwrap",
3434
deps = [
35+
"//runsc/config",
36+
"//sandboxexec/sandbox",
3537
"@com_github_google_go_cmp//cmp:go_default_library",
3638
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
3739
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",

0 commit comments

Comments
 (0)