From 221d663ea966445931530ab79e9fa97907ca7960 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Tue, 28 May 2019 15:04:58 +0200 Subject: Permit to host healtchecks This patch adds an optional container which host healthchecks images. --- lava-master/Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'lava-master') diff --git a/lava-master/Dockerfile b/lava-master/Dockerfile index 9b56be8..b018a2d 100644 --- a/lava-master/Dockerfile +++ b/lava-master/Dockerfile @@ -9,6 +9,7 @@ COPY default/* /etc/default/ RUN git clone https://github.com/BayLibre/lava-healthchecks.git RUN cp lava-healthchecks/health-checks/* /etc/lava-server/dispatcher-config/health-checks/ COPY health-checks/* /etc/lava-server/dispatcher-config/health-checks/ +RUN if [ -e /etc/lava-server/dispatcher-config/health-checks/healthcheck_url ];then sed -i "s,http.*blob/master,$(cat /etc/lava-server/dispatcher-config/health-checks/healthcheck_url)," /etc/lava-server/dispatcher-config/health-checks/* && sed -i 's,?.*$,,' /etc/lava-server/dispatcher-config/health-checks/* ;fi RUN chown -R lavaserver:lavaserver /etc/lava-server/dispatcher-config/health-checks/ COPY devices/ /root/devices/ -- cgit 1.2.3-korg