2017-11-01 17:49:32 +00:00
|
|
|
- !Image
|
|
|
|
name: env36
|
|
|
|
from: !DockerImage alpine:3.6
|
2017-11-02 18:31:58 +00:00
|
|
|
repository: localhost/grpclib/env36
|
2017-11-01 17:49:32 +00:00
|
|
|
tasks:
|
|
|
|
- run: apk add --no-cache python3
|
|
|
|
- run: pip3 install --no-cache-dir {{packages|join(" ")}}
|
|
|
|
packages:
|
|
|
|
- h2==3.0.1
|
|
|
|
- protobuf==3.4.0
|
|
|
|
- async-timeout==2.0.0
|
|
|
|
- multidict==3.3.0
|
|
|
|
|
2017-11-30 12:53:09 +00:00
|
|
|
- !Image
|
|
|
|
name: docs
|
|
|
|
from: env36
|
|
|
|
repository: localhost/grpclib/docs
|
|
|
|
tasks:
|
|
|
|
- run: apk add --no-cache ca-certificates
|
|
|
|
- run: update-ca-certificates
|
|
|
|
- run: pip3 install --no-cache-dir {{packages|join(" ")}}
|
|
|
|
packages:
|
|
|
|
- sphinx==1.6.5
|
|
|
|
- sphinx_rtd_theme==0.2.5b1
|
2017-11-01 17:49:32 +00:00
|
|
|
|
|
|
|
- !Command
|
|
|
|
name: server
|
|
|
|
image: env36
|
|
|
|
run: python3 -m helloworld.server
|
|
|
|
network-name: server
|
|
|
|
environ:
|
|
|
|
PYTHONPATH: example
|
|
|
|
ports:
|
|
|
|
- !Expose { port: 50051, as: 50051 }
|
|
|
|
|
|
|
|
- !Command
|
|
|
|
name: client
|
|
|
|
image: env36
|
|
|
|
run: python3 -m helloworld.client
|
|
|
|
environ:
|
|
|
|
PYTHONPATH: example
|
2017-11-30 12:53:09 +00:00
|
|
|
|
|
|
|
- !Command
|
|
|
|
name: build docs
|
|
|
|
image: docs
|
|
|
|
run: sphinx-build -b html docs build
|