Commit 11b0155d authored by David Foucher's avatar David Foucher

Add healthcheck script

parent 7f1ea5f0
Pipeline #2298 failed with stage
in 59 seconds
......@@ -11,7 +11,7 @@ services:
- CATALOG_KEY=${CATALOG_KEY}
- CATALOG_URL=${CATALOG_URL}
healthcheck:
test: curl -sfS http://trefle:8000/schema || exit 1
test: ["CMD", "/srv/healthcheck.sh"]
interval: 5s
timeout: 3s
retries: 3
......@@ -30,7 +30,7 @@ services:
- GITLAB_TOKEN=${GITLAB_TOKEN}
- COMMIT_AUTHORIZED=${COMMIT_AUTHORIZED}
healthcheck:
test: curl -sfS http://trefle-old:8000/schema || exit 1
test: ["CMD", "/srv/healthcheck.sh"]
interval: 5s
timeout: 3s
retries: 3
......
......@@ -22,6 +22,7 @@ RUN apt-get update && apt-get -y install \
RUN mkdir -p ${TREFLE_LOG_DIR}
WORKDIR /srv
COPY trefle/etc/logrotate.d/gunicorn.logrotate /etc/logrotate.d/gunicorn
COPY trefle/healthcheck.sh ./healthcheck.sh
#deploy
COPY trefle/srv/gunicorn.conf.py ./gunicorn.conf.py
......
#!/bin/sh
curl -sfS http://trefle:8000/schema || exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment