diff options
author | Kevin Hilman <khilman@baylibre.com> | 2019-06-04 14:34:56 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2019-06-04 14:34:56 -0700 |
commit | b9797e144c8434654c556477f6f8af28b377ef2d (patch) | |
tree | 7913f3b1af5408d478c5ecb5400831b5c25150e2 /lava-master/Dockerfile | |
parent | c70f91d51e4d7defded0faaa448b322872f31a1b (diff) | |
parent | 221d663ea966445931530ab79e9fa97907ca7960 (diff) |
Merge branch 'healtcheck-hosting' of https://github.com/montjoie/lava-docker
* 'healtcheck-hosting' of https://github.com/montjoie/lava-docker:
Permit to host healtchecks
Diffstat (limited to 'lava-master/Dockerfile')
-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/ |