summaryrefslogtreecommitdiffstats
path: root/lava-slave/Dockerfile
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-05-10 11:32:15 +0200
committerCorentin LABBE <clabbe@baylibre.com>2019-05-13 11:10:12 +0200
commit4ae24270f6e8e853ca97cdd1f926da486a39a387 (patch)
tree8221dc796dac83375fc93c9bbaa5cefe061a0879 /lava-slave/Dockerfile
parentd6ac516eed6fcf2caab00ecf03b12fa4482e278d (diff)
lava-slave: support lava-coordinator
This patchs adds a new flag "lava-coordinator" for slave which enables the generation of a lava-coordinator.conf file.
Diffstat (limited to 'lava-slave/Dockerfile')
-rw-r--r--lava-slave/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lava-slave/Dockerfile b/lava-slave/Dockerfile
index 60f574c..f5ce287 100644
--- a/lava-slave/Dockerfile
+++ b/lava-slave/Dockerfile
@@ -53,6 +53,10 @@ RUN apt-get -y install patch
COPY lava-patch/ /root/lava-patch
RUN cd /usr/lib/python3/dist-packages && for patch in $(ls /root/lava-patch/*patch) ; do patch -p1 < $patch || exit $?;done
+RUN mkdir /etc/lava-coordinator/
+COPY lava-coordinator/* /etc/lava-coordinator/
+RUN if [ -e /etc/lava-coordinator/lava-coordinator.cnf ]; then DEBIAN_FRONTEND=noninteractive apt-get -y install lava-coordinator && mv /etc/lava-coordinator/lava-coordinator.cnf /etc/lava-coordinator/lava-coordinator.conf ; fi
+
COPY devices/ /root/devices/
COPY tags/ /root/tags/
COPY deviceinfo/ /root/deviceinfo/