| 1 |
services: |
| 2 |
coordinator: |
| 3 |
image: "${IMAGE_PREFIX:-docker.io/labgrid/}coordinator" |
| 4 |
volumes: |
| 5 |
- "./coordinator:/home/root/coordinator" |
| 6 |
tty: true |
| 7 |
network_mode: "host" |
| 8 |
command: bash -c "cp /home/root/coordinator/places_example.yaml /opt/coordinator/places.yaml && |
| 9 |
/usr/local/bin/labgrid-coordinator" |
| 10 |
coordinator-statsd: |
| 11 |
image: "${IMAGE_PREFIX:-docker.io/labgrid/}coordinator-statsd" |
| 12 |
network_mode: "host" |
| 13 |
depends_on: |
| 14 |
- coordinator |
| 15 |
client: |
| 16 |
image: "${IMAGE_PREFIX:-docker.io/labgrid/}client" |
| 17 |
volumes: |
| 18 |
- "./client/simple-test:/simple-test" |
| 19 |
- "./client/.ssh:/root/.ssh" |
| 20 |
tty: true |
| 21 |
stdin_open: true |
| 22 |
network_mode: "host" |
| 23 |
tmpfs: "/tmp" |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
command: timeout 60 bash -c "set -e && |
| 28 |
cd /simple-test && |
| 29 |
until echo > /dev/tcp/localhost/20408; do sleep 1; done && |
| 30 |
sleep 5 && |
| 31 |
while [ -z $$(/usr/local/bin/labgrid-client r) ]; do echo 'Wait one sec on coordinator' && sleep 1; done && |
| 32 |
/usr/local/bin/labgrid-client -p example-place lock && |
| 33 |
/usr/local/bin/pytest --lg-env remote.yaml -s -vv && |
| 34 |
/usr/local/bin/labgrid-client -p example-place unlock" |
| 35 |
depends_on: |
| 36 |
- coordinator |
| 37 |
- exporter |
| 38 |
- dut |
| 39 |
exporter: |
| 40 |
image: "${IMAGE_PREFIX:-docker.io/labgrid/}exporter" |
| 41 |
volumes: |
| 42 |
- "./exporter-conf:/opt/conf" |
| 43 |
- "/run/udev:/run/udev:ro" |
| 44 |
depends_on: |
| 45 |
- coordinator |
| 46 |
tty: true |
| 47 |
network_mode: "host" |
| 48 |
stdin_open: true |
| 49 |
command: bash -c "set -e && |
| 50 |
until echo > /dev/tcp/localhost/20408; do sleep 1; done && labgrid-exporter /opt/conf/exporter.yaml" |
| 51 |
dut: |
| 52 |
build: |
| 53 |
context: "./dut" |
| 54 |
network_mode: "host" |