gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/test/dockerutil/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "dockerutil", 10 testonly = 1, 11 srcs = [ 12 "container.go", 13 "dockerutil.go", 14 "exec.go", 15 "gpu.go", 16 "network.go", 17 "profile.go", 18 ], 19 visibility = ["//:sandbox"], 20 deps = [ 21 "//pkg/sync", 22 "//pkg/test/testutil", 23 "//runsc/cgroup", 24 "@com_github_docker_docker//api/types:go_default_library", 25 "@com_github_docker_docker//api/types/container:go_default_library", 26 "@com_github_docker_docker//api/types/mount:go_default_library", 27 "@com_github_docker_docker//api/types/network:go_default_library", 28 "@com_github_docker_go_connections//nat:go_default_library", 29 "@com_github_moby_moby//client:go_default_library", 30 "@com_github_moby_moby//pkg/stdcopy:go_default_library", 31 "@org_golang_x_sys//unix:go_default_library", 32 ], 33 ) 34 35 go_test( 36 name = "profile_test", 37 size = "large", 38 srcs = [ 39 "profile_test.go", 40 ], 41 library = ":dockerutil", 42 tags = [ 43 # Requires docker and runsc to be configured before test runs. 44 # Also requires the test to be run as root. 45 "local", 46 "manual", 47 ], 48 visibility = ["//:sandbox"], 49 )