Add liveness probe script

This commit is contained in:
Andrey Beletsky 2020-03-10 01:42:21 +07:00
parent ad7ac535ee
commit 77c23efad5
3 changed files with 5 additions and 3 deletions

View file

@ -11,5 +11,6 @@ COPY conf/test_daemon_settings.yml ./
COPY conf/regtest_daemon_settings.yml ./
COPY launcher.sh ./launcher.sh
RUN chmod a+x launcher.sh
COPY scripts/probe.sh ./probe.sh
RUN chmod +x ./*.sh
CMD ["./launcher.sh"]

View file

@ -11,8 +11,6 @@ data_dir: /storage/lbrynet
download_dir: /storage/download
wallet_dir: /storage/lbryum
save_blobs: false
save_files: false
share_usage_data: false

3
scripts/probe.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
curl -sd '{"method": "status"}' $1 |grep '"wallet": true'