fix: adapt bootstrap timings for regtest docker

This commit is contained in:
fusion44 2023-03-25 10:34:26 +01:00
parent bb0dcd69d2
commit f7bec6340f
No known key found for this signature in database
6 changed files with 12 additions and 1 deletions

View file

@ -8,6 +8,7 @@ gather_hw_info_interval = 60
cpu_usage_averaging_period = 0.5
gather_ln_info_interval = 5.0
shell_script_path = /root
log_level=DEBUG
redis_host=redis
redis_port=6379

View file

@ -8,6 +8,8 @@ gather_hw_info_interval = 60
cpu_usage_averaging_period = 0.5
gather_ln_info_interval = 5.0
shell_script_path = /root
log_level=DEBUG
redis_host=redis
redis_port=6379
redis_db=4

View file

@ -8,6 +8,8 @@ gather_hw_info_interval = 60
cpu_usage_averaging_period = 0.5
gather_ln_info_interval = 5.0
shell_script_path = /root
log_level=DEBUG
redis_host=redis
redis_port=6379
redis_db=0

View file

@ -8,6 +8,8 @@ gather_hw_info_interval = 60
cpu_usage_averaging_period = 0.5
gather_ln_info_interval = 5.0
shell_script_path = /root
log_level=DEBUG
redis_host=redis
redis_port=6379
redis_db=1

View file

@ -8,6 +8,7 @@ gather_hw_info_interval = 60
cpu_usage_averaging_period = 0.5
gather_ln_info_interval = 5.0
shell_script_path = /root
log_level=DEBUG
redis_host=redis
redis_port=6379

View file

@ -1,5 +1,7 @@
#!/bin/sh
echo "LN_BACKEND: $LN_BACKEND"
if [ "$LN_BACKEND" = "cln1" ]; then
cp /code/.env.cln1 /code/.env
@ -16,6 +18,7 @@ else
fi
# wait until the nodes are ready
sleep 60
echo "Waiting for node $LN_BACKEND to finish bootstrapping..."
sleep 120
python3 -m uvicorn app.main:app --host 0.0.0.0 --port 80