From 3f18810e24414f156f6659c56a49675468b43afe Mon Sep 17 00:00:00 2001 From: Vladimir Magamedov Date: Wed, 1 Nov 2017 19:49:32 +0200 Subject: [PATCH] Added pi.yaml file for testing project in Linux environment --- pi.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pi.yaml diff --git a/pi.yaml b/pi.yaml new file mode 100644 index 0000000..f849a7a --- /dev/null +++ b/pi.yaml @@ -0,0 +1,31 @@ +- !Image + name: env36 + from: !DockerImage alpine:3.6 + repository: reg.local/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 + + +- !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