Skip to content

Commit

Permalink
Renamed dockerfiles;
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Aug 4, 2018
1 parent 67c1ac4 commit f916f98
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Try gRPC-Web and run a quick Echo example from the browser!
From the repo root directory:

```sh
$ docker-compose up echo-server envoy commonjs-client-example
$ docker-compose up echo-server envoy commonjs-client
```

Open a browser tab, and inspect
Expand Down Expand Up @@ -106,19 +106,19 @@ Multiple proxies supports the gRPC-Web protocol. Currently, the default proxy
is [Envoy](https://www.envoyproxy.io), which supports gRPC-Web out of the box.

```
$ docker-compose up echo-server envoy commonjs-client-example
$ docker-compose up echo-server envoy commonjs-client
```

An alternative is to build Nginx that comes with this repository.

```
$ docker-compose up echo-server nginx commonjs-client-example
$ docker-compose up echo-server nginx commonjs-client
```

Finally, you can also try this [gRPC-Web Go Proxy](https://github.com/improbable-eng/grpc-web/tree/master/go/grpcwebproxy).

```
$ docker-compose up echo-server grpcwebproxy binary-client-example
$ docker-compose up echo-server grpcwebproxy binary-client
```


Expand Down
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,30 @@ services:
- "8080:8080"
links:
- echo-server
static-assets:
closure-client:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/static_assets/Dockerfile
dockerfile: ./net/grpc/gateway/docker/closure-client/Dockerfile
depends_on:
- prereqs
image: grpc-web:static-assets
image: grpc-web:closure-client
ports:
- "80:80"
commonjs-client-example:
commonjs-client:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/commonjs_client_example/Dockerfile
dockerfile: ./net/grpc/gateway/docker/commonjs_client/Dockerfile
depends_on:
- prereqs
image: grpc-web:commonjs-client-example
image: grpc-web:commonjs-client
ports:
- "8081:8081"
binary-client-example:
binary-client:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/binary_client_example/Dockerfile
dockerfile: ./net/grpc/gateway/docker/binary_client/Dockerfile
depends_on:
- prereqs
image: grpc-web:binary-client-example
image: grpc-web:binary-client
ports:
- "8081:8081"
6 changes: 3 additions & 3 deletions net/grpc/gateway/examples/echo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ This steps compiles the front-end gRPC-Web client into a static .JS file, and
we use a simple server to serve up the JS/HTML static contents.

```sh
$ docker build -t grpc-web:static-assets \
-f net/grpc/gateway/docker/static_assets/Dockerfile .
$ docker run -d -p 80:80 grpc-web:static-assets
$ docker build -t grpc-web:closure-client \
-f net/grpc/gateway/docker/closure-client/Dockerfile .
$ docker run -d -p 80:80 grpc-web:closure-client
```

## Run the example from your browser
Expand Down

0 comments on commit f916f98

Please sign in to comment.