diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-05-28 15:04:58 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-06-04 14:23:13 +0200 |
commit | 221d663ea966445931530ab79e9fa97907ca7960 (patch) | |
tree | 7913f3b1af5408d478c5ecb5400831b5c25150e2 /lava-master | |
parent | 678a0a4cb8993897609b48a32ec2497c7ee5e01a (diff) |
Permit to host healtchecks
This patch adds an optional container which host healthchecks images.
Diffstat (limited to 'lava-master')
-rw-r--r-- | lava-master/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
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/ |