summaryrefslogtreecommitdiffstats
path: root/lava-slave/Dockerfile
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2017-10-25 14:07:15 +0200
committerCorentin LABBE <clabbe@baylibre.com>2017-10-25 14:11:58 +0200
commit26cc005179760bd25b8bdd724a936847c81d24eb (patch)
tree0e3aac8edbfd28384469190795fab4e9d07cb9ec /lava-slave/Dockerfile
parent905a723528e499e9eae193b4d72388076d561f6c (diff)
Add support for lavapdu
Diffstat (limited to 'lava-slave/Dockerfile')
-rw-r--r--lava-slave/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lava-slave/Dockerfile b/lava-slave/Dockerfile
index e87ac63..5e0f3cb 100644
--- a/lava-slave/Dockerfile
+++ b/lava-slave/Dockerfile
@@ -55,6 +55,11 @@ COPY configs/tftpd-hpa /etc/default/tftpd-hpa
COPY scripts/cu-loop /usr/local/bin/
COPY conmux/* /etc/conmux/
+#install pdudaemon
+RUN DEBIAN_FRONTEND=noninteractive apt-get -y install postgresql
+RUN service postgresql start && DEBIAN_FRONTEND=noninteractive apt-get -y install lavapdu-daemon lavapdu-client && service postgresql stop
+COPY lavapdu.conf /etc/lavapdu/
+
#TODO made this customizable, 1000 ports by default is too much
RUN sed -i 's,XNBD_PORT_RANGE_MIN.*,XNBD_PORT_RANGE_MIN=55950,' /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/utils/constants.py