summaryrefslogtreecommitdiffhomepage
path: root/pkg/test/dockerutil/BUILD
blob: 7f983a0b30e3b2980f928fcee24f3d3e65bd8258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
load("//tools:defs.bzl", "go_library", "go_test")

package(licenses = ["notice"])

go_library(
    name = "dockerutil",
    testonly = 1,
    srcs = [
        "container.go",
        "dockerutil.go",
        "exec.go",
        "network.go",
        "profile.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/test/testutil",
        "@com_github_docker_docker//api/types:go_default_library",
        "@com_github_docker_docker//api/types/container:go_default_library",
        "@com_github_docker_docker//api/types/mount:go_default_library",
        "@com_github_docker_docker//api/types/network:go_default_library",
        "@com_github_docker_docker//client:go_default_library",
        "@com_github_docker_docker//pkg/stdcopy:go_default_library",
        "@com_github_docker_go_connections//nat:go_default_library",
        "@org_golang_x_sys//unix:go_default_library",
    ],
)

go_test(
    name = "profile_test",
    size = "large",
    srcs = [
        "profile_test.go",
    ],
    library = ":dockerutil",
    tags = [
        # Requires docker and runsc to be configured before test runs.
        # Also requires the test to be run as root.
        "manual",
        "local",
    ],
    visibility = ["//:sandbox"],
)