Working healthcheck in lbrycrd

This commit is contained in:
Dan Garthwaite 2019-10-04 18:38:44 -04:00 committed by Leopere
parent 499e0f62da
commit f8ae8792e9
2 changed files with 2 additions and 6 deletions

View file

@ -25,8 +25,7 @@ RUN addgroup --gid 1000 lbrycrd && \
chmod a+s /usr/bin/fix-permissions
VOLUME ["/data"]
WORKDIR /data
## TODO: Implement healthcheck.
# HEALTHCHECK ["healthcheck"]
HEALTHCHECK CMD /usr/bin/healthcheck
EXPOSE 9246 9245 11337 29245
USER lbrycrd

View file

@ -1,4 +1 @@
## TODO: Implement a healthcheck for lbrycrd.
curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://$RPC_USER:$RPC_PASSWORD@127.0.0.1:9246
## OR
lbrycrd-cli getinfo
/usr/bin/lbrycrd-cli -conf=/etc/lbry/lbrycrd.conf getnetworkinfo | grep -q '"networkactive": true,'