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 chmod a+s /usr/bin/fix-permissions
VOLUME ["/data"] VOLUME ["/data"]
WORKDIR /data WORKDIR /data
## TODO: Implement healthcheck. HEALTHCHECK CMD /usr/bin/healthcheck
# HEALTHCHECK ["healthcheck"]
EXPOSE 9246 9245 11337 29245 EXPOSE 9246 9245 11337 29245
USER lbrycrd USER lbrycrd

View file

@ -1,4 +1 @@
## TODO: Implement a healthcheck for lbrycrd. /usr/bin/lbrycrd-cli -conf=/etc/lbry/lbrycrd.conf getnetworkinfo | grep -q '"networkactive": true,'
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