A container for executing queries against Postgres. Designed to be used with orchestration workflows where the Postgres server may be coming online at the same time as this container and we need to wait for Postgres to be ready to accept a query.
Uses the official Postgres container from DockerHub as its base: https://hub.docker.com/_/postgres/
Set the following values as environment variables
PGHOST
- Hostname of the Postgres serverPGUSER
- Username of Postgres serverPGQUERY
- Query to execute including trailing semicolonSLEEP_BEFORE_EXEC
- (optional) sleep before executing query after Postgres port is detected to be open