aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2023-11-16 21:17:47 -0800
committerArthur She <arthur.she@linaro.org>2023-11-16 21:24:19 -0800
commitad48315461d165375a037c7d31cdc8448f6c99f1 (patch)
tree3111d4303212c0339eaeae147ea7303cbced245e
parentcc6add3b86fa77df7a567097dc1ad55a36566f5e (diff)
Add docker-compose.yamltf-nuc-worker01
For tf-nuc-worker01 Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r--docker-compose.yaml98
1 files changed, 98 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000..bc165c6
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,98 @@
+version: "3.9"
+
+# common settings, it must starts with 'x-'
+x-common: &common_settings
+ image: servod-image
+ build:
+ context: .
+ dockerfile: Dockerfile
+ restart: always
+ privileged: true
+ logging:
+ driver: json-file
+ options:
+ max-size: "10m"
+ max-file: "10"
+ network_mode: "host"
+ cap_add:
+ - NET_ADMIN
+ volumes:
+ - /dev:/dev
+ - /run/pts:/run/pts
+ - /var/log/servod:/var/log/servod
+ - /etc/timezone:/etc/timezone
+ - /etc/localtime:/etc/localtime
+ command: ["/bin/bash", "/post_servod.sh"]
+
+services:
+ lazor-01:
+ # include the common settings
+ <<: *common_settings
+ container_name: "lazor-01-servod"
+ hostname: "lazor-01-servod"
+ environment:
+ - PORT=9999
+ - MODEL=trogdor
+ - BOARD=trogdor
+ - SERIAL=0280E045-8C643893
+ - LAVA_DEVICE=lazor-01
+
+ lazor-02:
+ # include the common settings
+ <<: *common_settings
+ container_name: "lazor-02-servod"
+ hostname: "lazor-02-servod"
+ environment:
+ - PORT=9993
+ - MODEL=trogdor
+ - BOARD=trogdor
+ - SERIAL=2301E022-95AC5252
+ - LAVA_DEVICE=lazor-02
+
+ lazor-03:
+ # include the common settings
+ <<: *common_settings
+ container_name: "lazor-03-servod"
+ hostname: "lazor-03-servod"
+ environment:
+ - PORT=9998
+ - MODEL=trogdor
+ - BOARD=trogdor
+ - SERIAL=20000039-95AC5252
+ - LAVA_DEVICE=lazor-03
+
+ asurada-01:
+ # include the common settings
+ <<: *common_settings
+ container_name: "asurada-01-servod"
+ hostname: "asurada-01-servod"
+ environment:
+ - PORT=9996
+ - MODEL=asurada
+ - BOARD=asurada
+ - SERIAL=1800E03D-94AB4762
+ - LAVA_DEVICE=asurada-01
+
+ asurada-02:
+ # include the common settings
+ <<: *common_settings
+ container_name: "asurada-02-servod"
+ hostname: "asurada-02-servod"
+ environment:
+ - PORT=9992
+ - MODEL=asurada
+ - BOARD=asurada
+ - SERIAL=18012023-94AB4762
+ - LAVA_DEVICE=asurada-02
+
+ asurada-03:
+ # include the common settings
+ <<: *common_settings
+ container_name: "asurada-03-servod"
+ hostname: "asurada-03-servod"
+ environment:
+ - PORT=9995
+ - MODEL=asurada
+ - BOARD=asurada
+ - SERIAL=1080801C-94A3D022
+ - LAVA_DEVICE=asurada-03