Skip to content

Commit

Permalink
adding healtchek to executors
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jul 31, 2024
1 parent 38fe6df commit 67e6c9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions executor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
ARG REGISTRY=rg.fr-par.scw.cloud/geolake
ARG TAG=latest
FROM $REGISTRY/geolake-datastore:$TAG

RUN apt update && apt install -y cron curl


WORKDIR /app
COPY requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
COPY app /app

COPY ./healtcheck.* /opt/

RUN chmod +x /opt/healtcheck.sh
RUN crontab -u root /opt/healtcheck.cron

CMD [ "python", "main.py" ]
1 change: 1 addition & 0 deletions executor/healtcheck.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*/10 * * * * bash -c '/opt/healtcheck.sh'
1 change: 1 addition & 0 deletions executor/healtcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl https://hc-ping.com/$HEALTCHECKS

0 comments on commit 67e6c9b

Please sign in to comment.