This repository was archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path0002-WORKSPACE-changes-as-bazel-version-update.patch
More file actions
74 lines (68 loc) · 2.44 KB
/
0002-WORKSPACE-changes-as-bazel-version-update.patch
File metadata and controls
74 lines (68 loc) · 2.44 KB
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
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: kimsehun <se.hun.kim@intel.com>
Date: Fri, 8 Nov 2019 18:10:04 +0000
Subject: [PATCH] WORKSPACE changes as bazel version update
WORKSPACE changes as bazel version update,
need to locate io_bazel_rules_docker and configs
[pmccarty]: After upstream commit 6a6071412a2 lands in a release, I
expect we can drop this patch. So, tensorflow >= 2.4.0.
Signed-off-by: kimsehun <se.hun.kim@intel.com>
---
WORKSPACE | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/WORKSPACE b/WORKSPACE
index ea741c31..83f20987 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -2,6 +2,53 @@ workspace(name = "org_tensorflow")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+# Download the rules_docker repository at release v0.12.1
+http_archive(
+ name = "io_bazel_rules_docker",
+ sha256 = "14ac30773fdb393ddec90e158c9ec7ebb3f8a4fd533ec2abbfd8789ad81a284b",
+ strip_prefix = "rules_docker-0.12.1",
+ urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.12.1/rules_docker-v0.12.1.tar.gz"],
+)
+
+load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl",
+ docker_toolchain_configure="toolchain_configure"
+)
+docker_toolchain_configure(
+ name = "docker_config",
+ # OPTIONAL: Path to a directory which has a custom docker client config.json.
+ # See https://docs.docker.com/engine/reference/commandline/cli/#configuration-files
+ # for more details.
+ client_config="<enter absolute path to your docker config directory here>",
+)
+# End of OPTIONAL segment.
+
+load(
+ "@io_bazel_rules_docker//repositories:repositories.bzl",
+ container_repositories = "repositories",
+)
+container_repositories()
+
+# This is NOT needed when going through the language lang_image
+# "repositories" function(s).
+load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
+
+container_deps()
+
+load(
+ "@io_bazel_rules_docker//container:container.bzl",
+ "container_pull",
+)
+
+container_pull(
+ name = "java_base",
+ registry = "gcr.io",
+ repository = "distroless/java",
+ # 'tag' is also supported, but digest is encouraged for reproducibility.
+ digest = "sha256:deadbeef",
+)
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
+
http_archive(
name = "io_bazel_rules_closure",
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",