forked from GoogleCloudPlatform/esp-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
112 lines (81 loc) · 3.68 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
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
workspace(name = "gcpproxy")
bind(
name = "boringssl_crypto",
actual = "//external:ssl",
)
# ==============================================================================
# Envoy extension configuration override. Must be before the envoy repository.
local_repository(
name = "envoy_build_config",
path = "envoy_build_config",
)
# ==============================================================================
# Load envoy repository.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Updating Envoy version:
# 1) Modify `ENVOY_SHA1` and the corresponding date.
# 2) Check if there was any change in WORKSPACE of Envoy upstream. GCP Proxy
# WORKSPACE should resemble the Envoy upstream WORKSPACE.
# 3) Check if envoy_build_config/extensions_build_config.bzl is up-to-date.
# Try to match it with the one in source/extensions and comment out unneeded extensions.
ENVOY_SHA1 = "af50070ee60866874b0a9383daf9364e884ded22" # v1.21.1 2022-02-22
ENVOY_SHA256 = "3c263a55cef6399aa2bb0201cc70186e86822f3b74bcdab508d579942bff7524"
http_archive(
name = "envoy",
sha256 = ENVOY_SHA256,
strip_prefix = "envoy-" + ENVOY_SHA1,
url = "https://github.com/envoyproxy/envoy/archive/" + ENVOY_SHA1 + ".zip",
)
# A hack to load zlib first before loading envoy_dependencies.
# grpc_deps() is using @zlib directly. But Envoy doesn't have @zlib, it only
# binds zlib to net_zlib so grpc_deps() fails.
# It is copied from https://github.com/grpc/grpc/blob/master/bazel/grpc_deps.bzl
http_archive(
name = "zlib",
build_file = "//bazel:zlib.BUILD",
sha256 = "6d4d6640ca3121620995ee255945161821218752b551a1a180f4215f7d124d45",
strip_prefix = "zlib-cacf7f1d4e3d44d871b605da3b647f07d718623f",
url = "https://github.com/madler/zlib/archive/cacf7f1d4e3d44d871b605da3b647f07d718623f.tar.gz",
)
# ==============================================================================
# Load remaining envoy dependencies.
load("@envoy//bazel:api_binding.bzl", "envoy_api_binding")
envoy_api_binding()
load("@envoy//bazel:api_repositories.bzl", "envoy_api_dependencies")
envoy_api_dependencies()
load("@envoy//bazel:repositories.bzl", "envoy_dependencies")
envoy_dependencies()
load("@envoy//bazel:repositories_extra.bzl", "envoy_dependencies_extra")
envoy_dependencies_extra()
load("@envoy//bazel:dependency_imports.bzl", "envoy_dependency_imports")
envoy_dependency_imports()
# ==============================================================================
# Load service control repositories
load("//bazel:repositories.bzl", "service_control_repositories")
service_control_repositories()
load("@io_bazel_rules_python//python:pip.bzl", "pip_install")
pip_install(
name = "grpc_python_dependencies",
requirements = "@com_github_grpc_grpc//:requirements.bazel.txt",
)
# ==============================================================================
load("@com_github_grpc_grpc//bazel:grpc_python_deps.bzl", "grpc_python_deps")
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
grpc_python_deps()
grpc_deps()
grpc_test_only_deps()
load("//bazel:grpc.bzl", "grpc_bindings")
grpc_bindings()