wjimenez5271 / postgres_query_exectuor

A container for executing queries against Postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres Query Executor

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/

Options

Set the following values as environment variables

  • PGHOST - Hostname of the Postgres server
  • PGUSER - Username of Postgres server
  • PGQUERY - Query to execute including trailing semicolon
  • SLEEP_BEFORE_EXEC - (optional) sleep before executing query after Postgres port is detected to be open

About

A container for executing queries against Postgres

License:Apache License 2.0


Languages

Language:Shell 100.0%