2020-07-27 05:01:16 +00:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2019-09-04 05:01:34 +00:00
|
|
|
|
|
|
|
package(licenses = ["notice"])
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "dockerutil",
|
|
|
|
testonly = 1,
|
2020-07-08 20:24:58 +00:00
|
|
|
srcs = [
|
|
|
|
"container.go",
|
|
|
|
"dockerutil.go",
|
|
|
|
"exec.go",
|
|
|
|
"network.go",
|
2020-07-27 05:01:16 +00:00
|
|
|
"profile.go",
|
2020-07-08 20:24:58 +00:00
|
|
|
],
|
2019-09-04 05:01:34 +00:00
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
deps = [
|
2020-04-23 18:32:08 +00:00
|
|
|
"//pkg/test/testutil",
|
2020-07-08 20:24:58 +00:00
|
|
|
"@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",
|
2019-09-04 05:01:34 +00:00
|
|
|
],
|
|
|
|
)
|
2020-07-27 05:01:16 +00:00
|
|
|
|
|
|
|
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"],
|
|
|
|
)
|