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

Update workers on docker-compose.yml #2379

Merged
merged 4 commits into from
Jul 12, 2023

Conversation

wolfwolker
Copy link
Contributor

Description:

On cold start of docker compose, workers crash because ipfs is not ready yet. With this change the workers will wait til the ipfs sevice is READY based on the container health check.

Related issue(s):

I haven't found any related open issue, but this behaviour is happening when using ipfs container.

Steps to reproduce the issue:

  1. clone develop branch and configure the services to use containerized ipfs
  2. docker compose up (after a while the workers will crash)
  3. docker compose ls -a will show both workers are down
  4. docker compose up will bring back the workers, and because now ipfs bootstrap is ready, they won't crash again

After the fix

After the fix, even on the first compose up, the workers don't crash

@wolfwolker wolfwolker added the IEU Intellect EU Team label Jul 5, 2023
@wolfwolker wolfwolker requested a review from simvalery July 5, 2023 16:49
@simvalery
Copy link
Collaborator

simvalery commented Jul 12, 2023

Hi @wolfwolker , I can see that the docker-compose.yml file has been changed but there are other docker-compose*.yml files which should also be updated?

on cold start of docker compose workers crashes because ipfs is not ready yet. With this the workers wait til the ipfs sevice is READY

Signed-off-by: noel garcia <noel.garcia@intellecteu.com>
Signed-off-by: noel garcia <noel.garcia@intellecteu.com>
Signed-off-by: noel garcia <noel.garcia@intellecteu.com>
Signed-off-by: noel garcia <noel.garcia@intellecteu.com>
@wolfwolker
Copy link
Contributor Author

you're right @simvalery. Just updated the other compose files

@simvalery simvalery merged commit fec1c01 into hashgraph:develop Jul 12, 2023
1 check passed
felipeneuhauss pushed a commit to IntellectEU/guardian that referenced this pull request Jul 22, 2023
…tart-dc

Update workers on docker-compose.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IEU Intellect EU Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants