1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Remove healthcheck script for now.

This commit is contained in:
Sam Rose 2023-11-28 11:20:19 +00:00
parent 3956c83d97
commit 9ac413a73f
No known key found for this signature in database
2 changed files with 0 additions and 17 deletions

View file

@ -29,10 +29,6 @@ WORKDIR /opt/couchdb
ADD couch/vm.args couch/local.ini ./etc/
WORKDIR /
ADD healthcheck.sh ./healthcheck.sh
RUN chmod +x ./healthcheck.sh
HEALTHCHECK --interval=15s --timeout=15s --start-period=45s CMD "/healthcheck.sh"
ADD runner.sh ./bbcouch-runner.sh
RUN chmod +x ./bbcouch-runner.sh /opt/clouseau/bin/clouseau
CMD ["./bbcouch-runner.sh"]

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
healthy=true
if [[ $(curl -s -w "%{http_code}\n" http://localhost:5984/_up -o /dev/null) -ne 200 ]]; then
echo 'ERROR: CouchDB is not running';
healthy=false
fi
if [ $healthy == true ]; then
exit 0
else
exit 1
fi