Prerequisite

Install Bazel (>=0.5.4)

Install JDK 8

$ sudo apt-get install openjdk-8-jdk

Install Bazel

  • add bazel distribution url as a package source (one time setup)
$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
  • install and update bazel into system
$ sudo apt-get update && sudo apt-get install bazel

$ sudo apt-get upgrade bazel
  • install bazel from binary to $HOME/bin (optional alternative)
$ wget https://github.com/bazelbuild/bazel/releases/download/0.7.0/bazel-0.7.0-installer-linux-x86_64.sh

$ chmod +x bazel-0.7.0-installer-linux-x86_64.sh

$ ./bazel-0.7.0-installer-linux-x86_64.sh --user

Inspect Bazel in System

$ which bazel
> /usr/bin/bazel

# $ bazel info

$ bazel version
> Extracting Bazel installation...
> Build label: 0.7.0
> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
> Build time: Wed Oct 18 14:27:19 2017 (1508336839)
> Build timestamp: 1508336839
> Build timestamp as int: 1508336839

Install gRPC (>=1.0.0) for Python2.7

$ sudo pip install grpcio

Install Additional Packages Required by Tensorflow Serving

sudo apt-get update && sudo apt-get install -y \
        build-essential \
        curl \
        libcurl3-dev \
        git \
        libfreetype6-dev \
        libpng12-dev \
        libzmq3-dev \
        pkg-config \
        python-dev \
        python-numpy \
        python-pip \
        software-properties-common \
        swig \
        zip \
        zlib1g-dev

results matching ""

    No results matching ""