-
Notifications
You must be signed in to change notification settings - Fork 7
Don't use wait for host port instead use pg_isready #61
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
Don't use wait for host port instead use pg_isready #61
Conversation
97488df to
472f168
Compare
ekohl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps also drop the wait_for_host_name_resolution and wait_for_host_port functions? Then you can drop dnsutils and netcat-openbsd because they're unused.
472f168 to
2d58f5a
Compare
done |
| # wait for postgres DNS | ||
| wait_for_host_name_resolution $OPENVOXDB_POSTGRES_HOSTNAME $OPENVOXDB_WAITFORHOST_SECONDS | ||
| # wait for postgres is ready | ||
| /wtfc.sh --timeout="${OPENVOXDB_WAITFORHOST_SECONDS}" --interval=1 --progress "pg_isready -h ${OPENVOXDB_POSTGRES_HOSTNAME} --port '${OPENVOXDB_POSTGRES_PORT:-5432}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be using OPENVOXDB_WAITFORPOSTGRES_SECONDS and then drop OPENVOXDB_WAITFORHOST_SECONDS?
| # wait for postgres is ready | ||
| /wtfc.sh --timeout="${OPENVOXDB_WAITFORHOST_SECONDS}" --interval=1 --progress "pg_isready -h ${OPENVOXDB_POSTGRES_HOSTNAME} --port '${OPENVOXDB_POSTGRES_PORT:-5432}'" | ||
|
|
||
| # wait for puppetserver DNS, then healthcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now outdated
| org.label-schema.vcs-ref="$vcs_ref" \ | ||
| org.label-schema.build-date="$build_date" | ||
|
|
||
| # Use netcat-openbsd to support IPv6 connectivity checks (netcat-traditional is IPv4 only) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this is now redundant as well.
I also removed the host/dns check for openvoxserver. i don't think it's needed because the curl command will implicit do the same
this will fix #60