Commit e87eb95c authored by James Bartlett's avatar James Bartlett
Browse files

Add tensorflow to build.

Summary: TSIA

Test Plan: Used tensorflow in subsequent diffs.

Reviewers: zasgar, #engineering

Reviewed By: zasgar, #engineering

Subscribers: yzhao

Differential Revision: https://phab.corp.pixielabs.ai/D6290

GitOrigin-RevId: fbde26db522ca0d3fa623ce3f897f147292fdb14
parent ace98dd5
No related merge requests found
Showing with 24 additions and 2 deletions
+24 -2
......@@ -156,3 +156,6 @@ build --define BUNDLE_VERSION={STABLE_BUILD_TAG}
# Import other bazelrc files
try-import %workspace%/jenkins.bazelrc
try-import %workspace%/user.bazelrc
# Tensorflow requires this option
common --experimental_repo_remote_exec
......@@ -84,6 +84,10 @@ 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()
##########################################################
# Manual GO dependencies (those we patch)
##########################################################
......
......@@ -80,6 +80,7 @@ def _cc_deps():
_bazel_repo("com_github_google_glog")
_bazel_repo("com_google_absl")
_bazel_repo("com_google_flatbuffers")
_repo_impl("org_tensorflow")
_include_all_repo("com_github_gperftools_gperftools", patch_cmds = ["./autogen.sh"])
_include_all_repo("com_github_nats_io_natsc", patches = ["//third_party:natsc.patch"], patch_args = ["-p1"])
......@@ -120,6 +121,7 @@ def pl_deps():
_bazel_repo("com_google_boringssl")
_bazel_repo("rules_foreign_cc")
_bazel_repo("io_bazel_rules_k8s")
_bazel_repo("io_bazel_rules_closure")
_repo_impl("com_github_grpc_grpc", patches = ["//third_party:grpc.patch"], patch_args = ["-p1"])
_repo_impl("com_intel_tbb", build_file = "@pl//third_party:tbb.BUILD")
......
......@@ -212,4 +212,17 @@ REPOSITORY_LOCATIONS = dict(
strip_prefix = "jsonrpcpp-1.3.2",
urls = ["https://github.com/badaix/jsonrpcpp/archive/v1.3.2.tar.gz"],
),
# August 18, 2020.
org_tensorflow = dict(
sha256 = "2595a5c401521f20a2734c4e5d54120996f8391f00bb62a57267d930bce95350",
strip_prefix = "tensorflow-2.3.0",
urls = ["https://github.com/tensorflow/tensorflow/archive/v2.3.0.tar.gz"],
),
io_bazel_rules_closure = dict(
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149",
urls = [
"https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
],
),
)
......@@ -8,7 +8,7 @@ else
end
execute 'install_python_packages' do
command 'pip3 install flake8 flake8-mypy setuptools yamllint'
command 'pip3 install flake8 flake8-mypy setuptools yamllint numpy'
end
include_recipe 'pixielabs::phabricator'
......
DOCKER_IMAGE_TAG=202008121724
DOCKER_IMAGE_TAG=202009222309
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment