-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from public/grpc-web-text
Support grpc-web-text format
- Loading branch information
Showing
22 changed files
with
831 additions
and
1,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.8.1-buster AS base | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN apt update && \ | ||
apt install -y build-essential libev-dev | ||
|
||
COPY . . | ||
|
||
RUN pip install -e .[tests] | ||
|
||
RUN python -m grpc.tools.protoc \ | ||
--proto_path="$(pwd)/" \ | ||
--python_out=. \ | ||
--grpc_python_out=. \ | ||
"$(pwd)"/test_server/*.proto | ||
|
||
RUN pip install daphne | ||
|
||
FROM base AS wsgi | ||
|
||
CMD python test_server/wsgi.py | ||
|
||
FROM base AS asgi | ||
|
||
CMD daphne -b 0.0.0.0 -p 8080 test_server.asgi:application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: "3.9" | ||
services: | ||
wsgi-server: | ||
build: | ||
context: . | ||
target: wsgi | ||
image: public/sonora-test-wsgi-server | ||
volumes: | ||
- ".:/usr/src/app" | ||
networks: | ||
interop: | ||
aliases: | ||
- wsgi-server | ||
- server | ||
|
||
asgi-server: | ||
build: | ||
context: . | ||
target: asgi | ||
image: public/sonora-test-asgi-server | ||
volumes: | ||
- ".:/usr/src/app" | ||
networks: | ||
interop: | ||
aliases: | ||
- server | ||
|
||
interop-grpcweb: | ||
image: grpcweb/prereqs | ||
entrypoint: /github/grpc-web/scripts/docker-run-interop-tests.sh | ||
networks: | ||
- interop | ||
|
||
networks: | ||
interop: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.