aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/tests/rhombus-labgrid/docker-compose.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-06-14 09:27:41 -0500
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commit8d05b1cda1b26b4ba134f114b9424446b410ac76 (patch)
treeec80f93b3a5a478674d8032149d825f33eccfcd5 /.ci/templates/tests/rhombus-labgrid/docker-compose.yml
parentce000955aea05802a00a8c47b6b8d1819d6fa0bc (diff)
downloaduhd-8d05b1cda1b26b4ba134f114b9424446b410ac76.tar.gz
uhd-8d05b1cda1b26b4ba134f114b9424446b410ac76.tar.bz2
uhd-8d05b1cda1b26b4ba134f114b9424446b410ac76.zip
ci: Add n310 into devtests
This commit adds support for reimaging n3xx devices and running devtest against a n310. This uses Labgrid to control an sdmux, which we then reimage the device. In the future, other devices can use this support to run other tests. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/tests/rhombus-labgrid/docker-compose.yml')
-rwxr-xr-x.ci/templates/tests/rhombus-labgrid/docker-compose.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.ci/templates/tests/rhombus-labgrid/docker-compose.yml b/.ci/templates/tests/rhombus-labgrid/docker-compose.yml
new file mode 100755
index 000000000..22a1eb219
--- /dev/null
+++ b/.ci/templates/tests/rhombus-labgrid/docker-compose.yml
@@ -0,0 +1,26 @@
+version: '3.3'
+services:
+ coordinator:
+ image: "labgrid-coordinator"
+ volumes:
+ - "./crossbar:/home/root/crossbar:Z"
+ tty: true
+ network_mode: "host"
+ restart: unless-stopped
+ command: bash -c "cp /home/root/crossbar/places.yaml /opt/crossbar/places.yaml &&
+ crossbar start --config /opt/labgrid/.crossbar/config.yaml"
+ exporter:
+ image: "labgrid-exporter"
+ volumes:
+ - "./exporter-conf:/opt/conf:Z"
+ - "/run/udev:/run/udev:ro"
+ - "/dev:/dev"
+ depends_on:
+ - coordinator
+ tty: true
+ network_mode: "host"
+ restart: unless-stopped
+ stdin_open: true
+ privileged: true
+ command: bash -c "set -e &&
+ /opt/wait-for-it/wait-for-it.sh 127.0.0.1:20408 -- labgrid-exporter /opt/conf/exporter.yaml"