Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for lnd and stagger startup time for lndk #22

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

mrfelton
Copy link
Member

@mrfelton mrfelton commented Jun 10, 2024

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 the lnd configuration, the implementation of startup delay scripts for the lndk nodes that waits for the lnd nodes to become fully ready before starting lndk, and the modification of the docker-compose.yml file to incorporate these scripts into the startup process of the nodes.

Configuration changes:

Startup delay scripts:

  • docker/lndk/wait-for-lnd.sh: Added a script to delay the startup of lndk nodes until lnd's gRPC port is ready. The script checks the status of lnd using a curl command and starts the lndk nodes with the provided arguments after a specified delay once lnd is ready.

Docker Compose changes:

  • docker-compose.yml: Modified the entrypoint for the services to use the newly added startup delay scripts. Also added the scripts to the volumes of the services. [1] [2]

@mrfelton mrfelton self-assigned this Jun 10, 2024
@mrfelton mrfelton added the type:enhancement Indicates new feature requests label Jun 10, 2024
@mrfelton mrfelton merged commit 345e72f into master Jun 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant