Wait for lnd and stagger startup time for lndk #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request mainly focuses on enhancing the startup process of the
lnd
nodes in a Docker environment. The changes include the addition of a REST listener in thelnd
configuration, the implementation of startup delay scripts for thelndk
nodes that waits for the lnd nodes to become fully ready before starting lndk, and the modification of thedocker-compose.yml
file to incorporate these scripts into the startup process of the nodes.Configuration changes:
conf/lnd/lnd.conf
: Added a REST listener at0.0.0.0:8080
to thelnd
configuration.Startup delay scripts:
docker/lndk/wait-for-lnd.sh
: Added a script to delay the startup oflndk
nodes untillnd
's gRPC port is ready. The script checks the status oflnd
using acurl
command and starts thelndk
nodes with the provided arguments after a specified delay oncelnd
is ready.Docker Compose changes:
docker-compose.yml
: Modified theentrypoint
for the services to use the newly added startup delay scripts. Also added the scripts to thevolumes
of the services. [1] [2]