Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
life1347 committed Jun 24, 2019
1 parent 2cae1dd commit 2953b80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
33 changes: 12 additions & 21 deletions environments/tensorflow-serving/README.md
@@ -1,37 +1,28 @@
# Fission: Go Environment
# Fission: Tensorflow Serving Environment

This is the Go environment for Fission.
This is the Tensorflow Serving environment for Fission.

It's a Docker image containing a Go runtime, along with a dynamic loader.
It's a Docker image containing a Go runtime, along with a tensorflow serving service.

Looking for ready-to-run examples? See the [Go examples directory](../../examples/go).
## How it works

## Build this image
Tensorflow Serving is an serving service that supports both RESTful API and gRPC endpoints. In current implementation,
Go server launches `tensorflow_model_server` to load in model during specialization. As long as the Go server receives
requests from router it creates a reverse proxy that connects to RESTful API endpoint exposed by tensorflow_model_server
and get response from the upstream server for user.

```
docker build -t USER/go-runtime . && docker push USER/go-runtime
```

Note that if you build the runtime, you must also build the go-builder
image, to ensure that it's at the same version of go:
## Build this image

```
cd builder && docker build -t USER/go-builder . && docker push USER/go-builder
docker build -t USER/tensorflow-serving . && docker push USER/tensorflow-serving
```

## Using the image in fission

You can add this customized image to fission with "fission env
create":

```
fission env create --name go --image USER/go-runtime --builder USER/go-builder --version 2
```

Or, if you already have an environment, you can update its image:
You can add this customized image to fission with "fission env create":

```
fission env update --name go --image USER/go-runtime --builder USER/go-builder
fission env create --name go --image USER/tensorflow-serving --version 2
```

After this, fission functions that have the env parameter set to the
Expand Down
10 changes: 0 additions & 10 deletions environments/tensorflow-serving/context/context.go

This file was deleted.

0 comments on commit 2953b80

Please sign in to comment.