Skip to content

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