Skip to content

Commit

Permalink
Update bazel version used in the docker images.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 302570662
  • Loading branch information
christisg authored and tensorflow-copybara committed Mar 24, 2020
1 parent dfc7a5c commit 162f729
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ load("//tensorflow_serving:repo.bzl", "tensorflow_http_archive")

tensorflow_http_archive(
name = "org_tensorflow",
sha256 = "788bb65c12a79fd02746d614bd87485738d9e4c1aed79fde52ffea434e1c1050",
git_commit = "553bff39bbec23e0d7b792fd8b4383014ad0401f",
sha256 = "1c5151923bbd10fb14311f1a0102de84ca3c29eafe2ef52f7ef07cb38f4acf36",
git_commit = "083fc9754e64b9ebb7970dc49a9d13d1a72413cf",
)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
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 @@ -64,7 +64,7 @@ RUN pip3 --no-cache-dir install \
--ignore-installed six

# Set up Bazel
ENV BAZEL_VERSION 1.2.1
ENV BAZEL_VERSION 2.0.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/tools/docker/Dockerfile.devel-gpu
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ RUN pip3 --no-cache-dir install \
--ignore-installed six

# Set up Bazel
ENV BAZEL_VERSION 1.2.1
ENV BAZEL_VERSION 2.0.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/tools/docker/Dockerfile.devel-mkl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN pip3 --no-cache-dir install \
--ignore-installed six

# Set up Bazel
ENV BAZEL_VERSION 1.2.1
ENV BAZEL_VERSION 2.0.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
Expand Down

4 comments on commit 162f729

@vqbang
Copy link

@vqbang vqbang commented on 162f729 Mar 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a bug while running this dockerfie:
image

ERROR: /root/.cache/bazel/_bazel_root/e53bbb0b0da4e26d24b415310219b953/external/upb/BUILD:57:1: C++ compilation of rule '@upb//:upb' failed (Exit 1)
It is at the bazel build, so frustrated.

@venky-intel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same error. Not sure what can resolve this, should I just try downgrading the bazel version and try again?

@vqbang
Copy link

@vqbang vqbang commented on 162f729 Mar 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also tried a few versions of bazel like 0.24.0, 0.24.1, 1.2.1, 2.0.0 but still not working. Hope they fix this bug soon.

@venky-intel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vqbang I've tried the r2.1 branch instead of 2.0.0 tag and was successfully able to build the Dockerfile resolving the above error. Please try that.

Please sign in to comment.