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

Change sleep to timeout in docker init script #1680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidguv
Copy link

@davidguv davidguv commented Feb 4, 2021

Change sleep to timeout to avoid errors on slow computers and speed the init

Description
Use the timeout command to wait until the tcp port of the service is open.
The rabbitmq and mongodb ports are hardcoded, because always start with this ports inside de docker
The nuve tcp port is queried in the config

The init time of the docker with this change: 15 s
Without the change: 26 s

With raspberry pi need more than 5 seconds to start the services

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant