{"id":40969027,"url":"https://github.com/panubo/docker-postgres-toolbox","last_synced_at":"2026-01-27T06:13:00.843Z","repository":{"id":37608348,"uuid":"114183293","full_name":"panubo/docker-postgres-toolbox","owner":"panubo","description":"PostgreSQL Toolbox for Docker","archived":false,"fork":false,"pushed_at":"2026-01-20T04:20:32.000Z","size":75,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-22T19:00:21.416Z","etag":null,"topics":["amazon-rds","automation","devops","docker-image","gcp-cloud-sql","postgresql","postgresql-backup"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panubo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-14T00:34:32.000Z","updated_at":"2026-01-21T02:11:08.000Z","dependencies_parsed_at":"2026-01-22T07:02:50.396Z","dependency_job_id":null,"html_url":"https://github.com/panubo/docker-postgres-toolbox","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/panubo/docker-postgres-toolbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-postgres-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-postgres-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-postgres-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-postgres-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panubo","download_url":"https://codeload.github.com/panubo/docker-postgres-toolbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-postgres-toolbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-rds","automation","devops","docker-image","gcp-cloud-sql","postgresql","postgresql-backup"],"created_at":"2026-01-22T06:34:10.922Z","updated_at":"2026-01-27T06:13:00.828Z","avatar_url":"https://github.com/panubo.png","language":"Shell","readme":"# PostgreSQL Toolbox\n\nA collection of PostgreSQL scripts for automating common DBA tasks in a Docker-centric way.\n\n\u003c!-- BEGIN_TOP_PANUBO --\u003e\n\u003e [!IMPORTANT]\n\u003e **Maintained by Panubo** — Cloud Native \u0026 SRE Consultants in Sydney.\n\u003e [Work with us →](https://panubo.com.au)\n\u003c!-- END_TOP_PANUBO --\u003e\n\n## Documentation\n\nDocumentation for each subcommand:\n\n- [create-user-db](commands/create-user-db.md)\n- [drop-user-db](commands/drop-user-db.md)\n- [pg-ping](commands/pg-ping.md)\n- [pganalyze](commands/pganalyze.md)\n- [psql](commands/psql.md)\n- [report](commands/report.md)\n- [save](commands/save.md)\n- [vacuumdb](commands/vacuumdb.md)\n\n## General Usage\n\nUsing Docker links to `postgres` container. This will display the usage information:\n\n```console\ndocker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox\n```\n\nTo run the subcommand:\n\n```console\ndocker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox \u003csubcommand\u003e\n```\n\n## Configuration\n\nUse `--link \u003cpostgres container name\u003e:postgres` to automatically specify the required variables.\n\nOr alternatively specify the environment variables:\n\n| Name | Description |\n| --- | --- |\n| `DATABASE_HOST` | IP / hostname of PostgreSQL server. |\n| `DATABASE_PORT` | TCP Port of PostgreSQL service. |\n| `DATABASE_USERNAME` | Administrative user eg postgres with SUPERUSER privileges. |\n| `DATABASE_PASSWORD` | Password of administrative user. |\n\nSome subcommands require additional environment parameters.\n\n## Testing\n\n[bats](https://bats-core.readthedocs.io/en/stable/index.html) is used for testing. To test the image and commands bats and docker are required. Use the following commands to run all of the tests.\n\n```console\nmake build-with-cache # or make build\nmake test\n```\n\nAll tests are kept in `tests/` and all of the extension `.bats`. `test_functions.bash` is also loaded by each test. The functions include a setup and teardown (see bats docs) which creates and destroys a postgres target server.\n\nUsing bats setup and teardown and avoiding exposing postgres ports etc should allow tests to be run in parallel.\n\n## Status\n\nFeature incomplete. Work in progress.\n\n## Local Testing\n\n* `Example` - Create user \n\n```docker run --rm -i -t -e DATABASE_HOST=localhost -e DATABASE_USERNAME=postgres -e DATABASE_PASSWORD=mysecretpassword -e DATABASE_PORT=5432 --network=host docker.io/panubo/postgres-toolbox create-user-db test test```\n\n\u003c!-- BEGIN_BOTTOM_PANUBO --\u003e\n\u003e [!IMPORTANT]\n\u003e ## About Panubo\n\u003e\n\u003e This project is maintained by Panubo, a technology consultancy based in Sydney, Australia. We build reliable, scalable systems and help teams master the cloud-native ecosystem.\n\u003e\n\u003e We are available for hire to help with:\n\u003e\n\u003e * SRE \u0026 Operations: Improving system reliability and incident response.\n\u003e * Platform Engineering: Building internal developer platforms that scale.\n\u003e * Kubernetes: Cluster design, security auditing, and migrations.\n\u003e * DevOps: Streamlining CI/CD pipelines and developer experience.\n\u003e * [See our other services](https://panubo.com.au/services)\n\u003e\n\u003e Need a hand with your infrastructure? [Let’s have a chat](https://panubo.com.au/contact) or email us at team@panubo.com.\n\u003c!-- END_BOTTOM_PANUBO --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanubo%2Fdocker-postgres-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanubo%2Fdocker-postgres-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanubo%2Fdocker-postgres-toolbox/lists"}