summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2023-01-07 00:06:39 +0000
committerArthur She <arthur.she@linaro.org>2023-07-10 03:58:07 +0000
commit74c1dea39bede0698560f4f5a169472a3ab65dcb (patch)
tree1a4aaedf4ac27ff132b26e6eb2bbfb337bfed065
parentd4953bb54836db51b8e255041601b3872072885d (diff)
Add script to start servod container for Lazor-01
lazor-01.sh & trogdor1-env That's only for single servod container. Signed-off-by: Arthur She <arthur.she@linaro.org>
-rwxr-xr-xsrc/dockerfiles/servod/lazor-01.sh18
-rw-r--r--src/dockerfiles/servod/trogdor1-env5
2 files changed, 23 insertions, 0 deletions
diff --git a/src/dockerfiles/servod/lazor-01.sh b/src/dockerfiles/servod/lazor-01.sh
new file mode 100755
index 0000000..5796be9
--- /dev/null
+++ b/src/dockerfiles/servod/lazor-01.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -x
+
+[ -d "/var/log/servod" ] || mkdir -p /var/log/servod
+
+docker run -d \
+ --restart always \
+ --network host \
+ --name servod \
+ --env-file trogdor1-env \
+ --cap-add=NET_ADMIN \
+ --volume=/dev:/dev \
+ --volume=/run/pts:/run/pts \
+ --volume=/var/log/servod:/var/log/servod \
+ --privileged \
+ servod:latest \
+ /bin/bash /start_servod.sh
+
diff --git a/src/dockerfiles/servod/trogdor1-env b/src/dockerfiles/servod/trogdor1-env
new file mode 100644
index 0000000..838fb76
--- /dev/null
+++ b/src/dockerfiles/servod/trogdor1-env
@@ -0,0 +1,5 @@
+PORT=9999
+MODEL=trogdor
+BOARD=trogdor
+SERIAL=0280E045-8C643893
+LAVA_DEVICE=lazor-01