tensorboard-plugin-example
tensorboard-plugin-example copied to clipboard
Fix the intructions to work inside of a Docker container
This PR allows to get the demo working in a Docker container. The following dump should justify the fixes suggested:
~/tensorboard-plugin-example# TensorBoard 1.12.0 at http://913f3daf7877:6006 (Press CTRL+C to quit)
bazel run //greeter_plugin:greeter_demo
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 6804814a-633f-4ffc-8b7f-eea8f2657543
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 3.417s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
Fetching @io_bazel_rules_closure; fetching
root@913f3daf7877:~/tensorboard-plugin-example# bazel run //greeter_plugin:greeter_demo --incompatible_remove_native_http_archive=false
INFO: Invocation ID: 4b45fd68-7f3f-45ac-a7bb-b9da4e286ca1
INFO: Analysed target //greeter_plugin:greeter_demo (13 packages loaded, 105 targets configured).
INFO: Found 1 target...
Target //greeter_plugin:greeter_demo up-to-date:
bazel-bin/greeter_plugin/greeter_demo
INFO: Elapsed time: 51.475s, Critical Path: 0.05s
INFO: 0 processes.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
Saving output to /tmp/greeter_demo.
2018-12-15 15:12:58.823760: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Done. Output saved to /tmp/greeter_demo.
bazel run //greeter_tensorboard -- --logdir=/tmp/greeter_demo
INFO: Invocation ID: 3902dad5-5d62-490f-ba04-4cf1c5320e16
INFO: Build options have changed, discarding analysis cache.
ERROR: /root/tensorboard-plugin-example/greeter_tensorboard/BUILD:7:1: no such package '@org_pocoo_werkzeug//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//greeter_tensorboard:greeter_tensorboard'
ERROR: Analysis of target '//greeter_tensorboard:greeter_tensorboard' failed; build aborted: no such package '@org_pocoo_werkzeug//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 0.829s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 22 targets configured)
FAILED: Build did NOT complete successfully (7 packages loaded, 22 targets configured)
currently loading: @bazel_tools//tools/zip
Fetching @org_pocoo_werkzeug; fetching
~/tensorboard-plugin-example# bazel run //greeter_tensorboard --incompatible_remove_native_http_archive=false -- --logdir=/tmp/greeter_demo
INFO: Invocation ID: 2b5e52d3-a81c-438f-ac58-6acdad9733af
INFO: Build options have changed, discarding analysis cache.
INFO: Analysed target //greeter_tensorboard:greeter_tensorboard (280 packages loaded, 5141 targets configured).
INFO: Found 1 target...
INFO: From ProtoCompile external/org_tensorflow_tensorboard/tensorboard/plugins/profile/trace_events_pb2.py:
external/com_google_protobuf/python: warning: directory does not exist.
...
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.
What to do if you already signed the CLA
Individual signers
- It's possible we don't have your GitHub username or you're using a different email address on your commit. Check your existing CLA data and verify that your email is set on your git commits.
Corporate signers
- Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to go/cla#troubleshoot (Public version).
- The email used to register you as an authorized contributor must be the email used for the Git commit. Check your existing CLA data and verify that your email is set on your git commits.
- The email used to register you as an authorized contributor must also be attached to your GitHub account.