-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bazel
57 lines (44 loc) · 1.59 KB
/
WORKSPACE.bazel
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
###############################################
# Local repositories with RBE configurations. #
###############################################
local_repository(
name = "rbe_linux_toolchains",
path = "bazel/rbe/linux-bazel-4.2.1",
)
local_repository(
name = "rbe_windows_toolchains",
path = "bazel/rbe/windows-bazel-4.2.1",
)
############
# Android. #
############
load("//toolchain:download_toolchains.bzl", "download_toolchains_for_skcms")
download_toolchains_for_skcms("clang_linux_amd64", "clang_mac", "ndk_linux_amd64")
##################################
# Docker rules and dependencies. #
##################################
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_docker",
sha256 = "1f4e59843b61981a96835dc4ac377ad4da9f8c334ebe5e0bb3f58f80c09735f4",
strip_prefix = "rules_docker-0.19.0",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.19.0/rules_docker-v0.19.0.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//container:container.bzl",
"container_pull",
)
# Pulls the Docker image used as the base for SkCMS's Linux RBE toolchain container image.
container_pull(
name = "ubuntu1804",
digest = "sha256:e006d8c083684299f1726b47361bfe5acfa0638a226e98b957681a2d135fbd40",
registry = "gcr.io",
repository = "cloud-marketplace/google/ubuntu1804",
)