forked from GoogleCloudPlatform/layer-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
173 lines (120 loc) · 5.61 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# Copyright 2018 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 = "layer_definitions")
load(
"@bazel_tools//tools/build_defs/repo:http.bzl",
"http_archive",
"http_file",
)
http_archive(
name = "io_bazel_rules_docker",
sha256 = "feb53c560be2f97b7d02b23a1738a3154ba89fe630f09a7a838dcad38731b0b8",
strip_prefix = "rules_docker-faaa10a72fa9abde070e2a20d6046e9f9b849e9a",
urls = ["https://github.com/bazelbuild/rules_docker/archive/faaa10a72fa9abde070e2a20d6046e9f9b849e9a.tar.gz"],
)
http_archive(
name = "bazel_toolchains",
sha256 = "3c1299efcf64a4ecf4f6def7564db28879ad2870632144d77932e7910686d3f3",
strip_prefix = "bazel-toolchains-1.1.2",
urls = [
"https://github.com/bazelbuild/bazel-toolchains/releases/download/1.1.2/bazel-toolchains-1.1.2.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/1.1.2.tar.gz",
],
)
http_archive(
name = "bazel_skylib",
sha256 = "e5d90f0ec952883d56747b7604e2a15ee36e288bb556c3d0ed33e818a4d971f2",
strip_prefix = "bazel-skylib-1.0.2",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/1.0.2.tar.gz"],
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
container_deps()
load("@io_bazel_rules_docker//repositories:pip_repositories.bzl", "pip_deps")
pip_deps()
# GCloud gpg key necessary to run the download_pkgs target (to build the tarball
# of debian packages) of the gcloud layer in this repo.
# This is NOT needed to use the language_tool_layer target of the gcloud layer.
http_file(
name = "gcloud_gpg",
downloaded_file_path = "gcloud_gpg",
# TODO (smukherj1): Re-enable sha256 digest once stable.
urls = ["https://packages.cloud.google.com/apt/doc/apt-key.gpg"],
)
# Docker gpg key necessary to run the download_pkgs target (to build the tarball
# of debian packages) of the docker layer in this repo.
# This is NOT needed to use the language_tool_layer target of the docker layer.
http_file(
name = "docker_gpg",
downloaded_file_path = "docker_gpg",
sha256 = "1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570",
urls = ["https://download.docker.com/linux/ubuntu/gpg"],
)
# These are used by CI only.
load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
load("@bazel_toolchains//rules:environments.bzl", "clang_env")
rbe_autoconfig(
name = "rbe_toolchain_config",
base_container_digest = "sha256:3e98e2e1233de1aed4ed7d7e05450a3f75b8c8d6f6bf53f1b390b5131c790f6f",
# Note that if you change the `digest`, you might also need to update the
# `base_container_digest` to make sure asci-toolchain/nosla-ubuntu16_04-bazel-docker-gcloud:<digest>
# and marketplace.gcr.io/google/rbe-ubuntu16-04:<base_container_digest> have the
# same Clang and JDK installed.
digest = "sha256:c38a2be3377f6ee98b8c64deab64b597aa4a8aef1944de67b1312e9d33393e3d",
env = clang_env(),
registry = "gcr.io",
repository = "asci-toolchain/nosla-ubuntu16_04-bazel-docker-gcloud",
)
# ================================= Ubuntu1604 =================================
load("//layers/ubuntu1604/base:deps.bzl", ubuntu1604_base_deps = "deps")
ubuntu1604_base_deps()
load("//layers/ubuntu1604/bazel:deps.bzl", ubuntu1604_bazel_deps = "deps")
ubuntu1604_bazel_deps()
load("//layers/ubuntu1604/clang:deps.bzl", ubuntu1604_clang_deps = "deps")
ubuntu1604_clang_deps()
load("//layers/ubuntu1604/docker:deps.bzl", ubuntu1604_docker_deps = "deps")
ubuntu1604_docker_deps()
load("//layers/ubuntu1604/gcloud:deps.bzl", ubuntu1604_gcloud_deps = "deps")
ubuntu1604_gcloud_deps()
load("//layers/ubuntu1604/java:deps.bzl", ubuntu1604_java_deps = "deps")
ubuntu1604_java_deps()
load("//layers/ubuntu1604/python:deps.bzl", ubuntu1604_python_deps = "deps")
ubuntu1604_python_deps()
load("//layers/ubuntu1604/go:deps.bzl", ubuntu1604_go_deps = "deps")
ubuntu1604_go_deps()
load("//layers/ubuntu1604/python_rbe:deps.bzl", ubuntu1604_python_rbe_deps = "deps")
ubuntu1604_python_rbe_deps()
load("//layers/ubuntu1604/rbe_tools:deps.bzl", ubuntu1604_rbe_tools_deps = "deps")
ubuntu1604_rbe_tools_deps()
load("//layers/ubuntu1604/webtest:deps.bzl", ubuntu1604_webtest_deps = "deps")
ubuntu1604_webtest_deps()
load("//layers/ubuntu1604/android_test:deps.bzl", ubuntu1604_android_test_deps = "deps")
ubuntu1604_android_test_deps()
# ================================= Ubuntu1804 =================================
load("//layers/ubuntu1804/base:deps.bzl", ubuntu1804_base_deps = "deps")
ubuntu1804_base_deps()
load("//layers/ubuntu1804/clang:deps.bzl", ubuntu1804_clang_deps = "deps")
ubuntu1804_clang_deps()
load("//layers/ubuntu1804/go:deps.bzl", ubuntu1804_go_deps = "deps")
ubuntu1804_go_deps()
load("//layers/ubuntu1804/java:deps.bzl", ubuntu1804_java_deps = "deps")
ubuntu1804_java_deps()
load("//layers/ubuntu1804/python:deps.bzl", ubuntu1804_python_deps = "deps")
ubuntu1804_python_deps()
load("//layers/ubuntu1804/rbe_tools:deps.bzl", ubuntu1804_rbe_tools_deps = "deps")
ubuntu1804_rbe_tools_deps()