Skip to content

Conversation

@vchendrix
Copy link
Member

Wait for postgres db to start

Description

Added while loop to wait for db:5432 to be available.

Closes #16

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Made sure that you can bring an entire stack up successfully and that the metacat container waits for the postgres db to be available.

Test Configuration

  • Metacat Version: 2.12.3

Copy link
Contributor

@helbashandy helbashandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I tried starting while the db container is removed but since it's in the docker-compose as a depends_on: db it started it anyway and metacat waited for the db which is great!

@vchendrix vchendrix merged commit d3f09c2 into master Feb 20, 2020
@vchendrix vchendrix deleted the issue_16_wait_db branch February 20, 2020 17:24
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.

Refactor docker-entrypoint.sh to wait for postgres db to be available

3 participants