Skip to content

Commit

Permalink
Require Bazel 0.3.0 and update documentation and dockerfile according…
Browse files Browse the repository at this point in the history
…ly. We technically need >=0.2.2 already to resolve runfiles paths correctly, and now TensorFlow requires 0.3.0, so updating our requirement as well.

Change: 132099802
  • Loading branch information
kirilg authored and pythonner committed Sep 8, 2016
1 parent b568ac3 commit 4647230
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ workspace(name = "tf_serving")
# Please add all new TensorFlow Serving dependencies in workspace.bzl.
load('//tensorflow_serving:workspace.bzl', 'tf_serving_workspace')
tf_serving_workspace(__workspace_dir__)

# Specify the minimum required bazel version.
load("@org_tensorflow//tensorflow:tensorflow.bzl", "check_version")
check_version("0.3.0")
8 changes: 4 additions & 4 deletions tensorflow_serving/g3doc/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ To compile and use TensorFlow Serving, you need to set up some prerequisites.

### Bazel

TensorFlow Serving requires Bazel 0.2.0 or higher. You can find the Bazel
TensorFlow Serving requires Bazel 0.3.0 or higher. You can find the Bazel
installation instructions [here](http://bazel.io/docs/install.html).

If you have the prerequisites for Bazel, those instructions consist of the
following steps:

1. Download the relevant binary from
[here](https://github.com/bazelbuild/bazel/releases).
Let's say you downloaded bazel-0.2.0-installer-linux-x86_64.sh. You would
Let's say you downloaded bazel-0.3.0-installer-linux-x86_64.sh. You would
execute:

~~~shell
cd ~/Downloads
chmod +x bazel-0.2.0-installer-linux-x86_64.sh
./bazel-0.2.0-installer-linux-x86_64.sh --user
chmod +x bazel-0.3.0-installer-linux-x86_64.sh
./bazel-0.3.0-installer-linux-x86_64.sh --user
~~~
2. Set up your environment. Put this in your ~/.bashrc.

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/tools/docker/Dockerfile.devel
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/root/.bazelrc
ENV BAZELRC /root/.bazelrc
# Install the most recent bazel release.
ENV BAZEL_VERSION 0.2.0
ENV BAZEL_VERSION 0.3.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
Expand Down

0 comments on commit 4647230

Please sign in to comment.