Docker Image supports gPRC + protobuf

Prepare the Model Servables

# //src - default working directory

# in order to avoid sending all //src/serving into docker build
$ mkdir -p ./grpc/tf_servables
$ cp -r ./serving/tf_servables/slim ./grpc/tf_servables

$ cd grpc

Dockerfile

# <git-repo>//src/grpc/Dockerfile

Prepare Docker Init Script

# <git-repo>//src/grpc/init.sh

Docker Image

//src/grpc

$ docker build -t yg-tfs-slim:grpc -f Dockerfile .

Run and Inspect Image

$ docker run -p 9000:9000 -p 9090:9090 -it yg-tfs-slim:grpc
//src/serving

$ bazel-bin/tensorflow_serving/example/slim_inception_resnet_v2_client \
     --server=localhost:9000 \
     --image_url=https://upload.wikimedia.org/wikipedia/commons/d/d9/First_Student_IC_school_bus_202076.jpg

Push to Public

$ docker tag yg-tfs-slim:grpc gyang274/yg-tfs-slim:grpc

$ docker login

$ docker push gyang274/yg-tfs-slim:grpc

results matching ""

    No results matching ""