forked from vmagamedov/grpclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpi.yaml
47 lines (43 loc) · 1010 Bytes
/
pi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- !Image
name: env36
from: !DockerImage alpine:3.6
repository: localhost/grpclib/env36
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
- !Image
name: docs
from: env36
repository: localhost/grpclib/docs
tasks:
- run: apk add --no-cache ca-certificates
- run: update-ca-certificates
- run: pip3 install -U setuptools
- run: pip3 install --no-cache-dir -r {{requirements}}
requirements: !File docs/requirements.txt
- !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
- !Command
name: build docs
image: docs
run: sphinx-build -b html docs build
environ:
PYTHONPATH: .