summaryrefslogtreecommitdiffstats
path: root/healthcheck
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2019-06-04 14:34:56 -0700
committerKevin Hilman <khilman@baylibre.com>2019-06-04 14:34:56 -0700
commitb9797e144c8434654c556477f6f8af28b377ef2d (patch)
tree7913f3b1af5408d478c5ecb5400831b5c25150e2 /healthcheck
parentc70f91d51e4d7defded0faaa448b322872f31a1b (diff)
parent221d663ea966445931530ab79e9fa97907ca7960 (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 'healthcheck')
-rw-r--r--healthcheck/Dockerfile13
-rw-r--r--healthcheck/port.conf6
2 files changed, 19 insertions, 0 deletions
diff --git a/healthcheck/Dockerfile b/healthcheck/Dockerfile
new file mode 100644
index 0000000..b34fb79
--- /dev/null
+++ b/healthcheck/Dockerfile
@@ -0,0 +1,13 @@
+FROM bitnami/minideb:stretch
+
+RUN apt-get update && apt-get -y install git
+RUN git clone https://github.com/BayLibre/lava-healthchecks-binary.git
+
+FROM nginx:mainline-alpine
+
+COPY port.conf /etc/nginx/conf.d/
+
+COPY --from=0 /lava-healthchecks-binary/mainline /usr/share/nginx/html/mainline/
+COPY --from=0 lava-healthchecks-binary/images /usr/share/nginx/html/images/
+COPY --from=0 lava-healthchecks-binary/next /usr/share/nginx/html/next/
+COPY --from=0 lava-healthchecks-binary/stable /usr/share/nginx/html/stable/
diff --git a/healthcheck/port.conf b/healthcheck/port.conf
new file mode 100644
index 0000000..60c72f3
--- /dev/null
+++ b/healthcheck/port.conf
@@ -0,0 +1,6 @@
+# On docker, port 80 cannot be exported since lava-slave already export it
+# So port 8080 is exported instead.
+server {
+ listen 8080;
+ root /usr/share/nginx/html/;
+}