Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Bug/bash script does not wait for containers to finish launching #20

Open
kimlisa opened this issue Feb 28, 2019 · 0 comments
Open

Bug/bash script does not wait for containers to finish launching #20

kimlisa opened this issue Feb 28, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@kimlisa
Copy link
Contributor

kimlisa commented Feb 28, 2019

Description

Referring to #19 (comment) for file run_hwsc_user_svc_db.sh in directory db-local-run

Not sure what the specific problem is but it seems the bash script does not wait for containers in the background to finish launching before running migration files resulting in a EOF error

As a temporary work around, sleep 4 was placed to wait for containers to finish launching in the background before running migration

How to Reproduce

remove sleep 4 from the script

Expected Outcome

1: postgres container is launched and running
2: all migrations are successfully executed

Actual Outcome

Postgres container seemed to be launched but rest of script results in EOF error and does not run migration

Work Around

adding sleep 4 after docker run...

@kimlisa kimlisa added the bug Something isn't working label Feb 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant