forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
126 lines (78 loc) · 3.58 KB
/
WORKSPACE
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
workspace(name = "px")
load("//:workspace.bzl", "check_min_bazel_version")
check_min_bazel_version("4.0.0")
load("//bazel:repositories.bzl", "pl_deps")
# Install Pixie Labs Dependencies.
pl_deps()
# Order is important. Try to go from most basic/primitive to higher level packages.
# - protobuf_deps
# - grpc_deps (must come after protobuf_deps)
# - go_rules_dependencies
# - apple_rules_dependencies (must come after grpc_deps)
# ...
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(go_version = "1.16")
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
scala_version = "2.13.6"
scala_config(scala_version = scala_version)
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
scala_repositories()
load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
scala_register_toolchains()
# These dependencies are needed by GRPC.
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
apple_rules_dependencies()
load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
apple_support_dependencies()
load("//bazel:pl_workspace.bzl", "pl_container_images", "pl_workspace_setup")
pl_workspace_setup()
# The pip_deps rule cannot be loaded until we load all the basic packages in the Pixie
# workspace. Also, bazel requires that loads are done at the top level (not in a function), so
# we need to pull it out over here.
load("@io_bazel_rules_docker//repositories:py_repositories.bzl", "py_deps")
py_deps()
# The docker images can't be loaded until all pip_deps are satisfied.
pl_container_images()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
load("//bazel:gogo.bzl", "gogo_grpc_proto")
gogo_grpc_proto(name = "gogo_grpc_proto")
# Setup tensorflow.
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_repositories")
tf_repositories()
load("//bazel:pl_workspace.bzl", "pl_model_files")
pl_model_files()
# Setup the environment for the open-source python API.
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "vizier_api_python_deps",
requirements_lock = "//src/api/python:requirements.txt",
)
load("@vizier_api_python_deps//:requirements.bzl", "install_deps")
install_deps()
# Setup thrift: used for building Stirling tracing targets.
load("//bazel:thrift.bzl", "thrift_deps")
thrift_deps(scala_version = scala_version)
# twitter_scrooge will use incompatible versions of @scrooge_jars and @thrift_jars.
# These bind statements ensure that the correct versions of finagle libthrift are used
# so that compilation is successful. See https://github.com/bazelbuild/rules_scala/issues/592
# and https://github.com/bazelbuild/rules_scala/pull/847 for more details.
bind(
name = "io_bazel_rules_scala/dependency/thrift/scrooge_core",
actual = "//src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:scrooge_jars",
)
bind(
name = "io_bazel_rules_scala/dependency/thrift/libthrift",
actual = "//src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:thrift_jars",
)
# gazelle:repo bazel_gazelle
load("//:go_deps.bzl", "pl_go_dependencies")
# gazelle:repository_macro go_deps.bzl%pl_go_dependencies
pl_go_dependencies()