Skip to content
Snippets Groups Projects
Commit c8696ebc authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Fix HEALTHCHECK in Dockerfile

parent 06d9228d
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,10 @@ FROM python:3
LABEL author="C3SL - Centro de Computação Científica e Software Livre"
ENV LOG_LEVEL="warn"
# Database configuration
ENV DB_ENABLED="true"
ENV DB_NAME="gesac"
ENV DB_USER="gesac"
ENV DB_NAME="simmc"
ENV DB_USER="simmc"
ENV DB_HOST="localhost"
ENV DB_PASS="changeme"
ENV DB_PORT="5432"
......@@ -28,10 +26,13 @@ RUN chmod +x gesacmonit.py
USER gesac
# this is the backup directory
RUN mkdir restore/
# volume to store backup data, when the database is unavailable
VOLUME "/home/gesac/restore"
HEALTHCHECK CMD ps aux | egrep '[d]efunct' && exit 1
HEALTHCHECK CMD ps aux | egrep -q '[d]efunct' && exit 1 || exit 0
ENTRYPOINT ["./gesacmonit.py"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment