{"id":18678680,"url":"https://github.com/danihodovic/pgcli-docker","last_synced_at":"2025-11-07T12:30:43.110Z","repository":{"id":77192846,"uuid":"67952509","full_name":"danihodovic/pgcli-docker","owner":"danihodovic","description":"Pgcli dockerized","archived":false,"fork":false,"pushed_at":"2016-11-30T17:37:46.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T21:33:40.148Z","etag":null,"topics":["docker","pgcli","postgresql","psql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danihodovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-09-11T20:25:35.000Z","updated_at":"2017-03-25T18:07:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2e5a432-34d1-41df-979b-d525e2924a18","html_url":"https://github.com/danihodovic/pgcli-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fpgcli-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fpgcli-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fpgcli-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fpgcli-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danihodovic","download_url":"https://codeload.github.com/danihodovic/pgcli-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239530174,"owners_count":19654242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","pgcli","postgresql","psql"],"created_at":"2024-11-07T09:41:04.382Z","updated_at":"2025-11-07T12:30:43.072Z","avatar_url":"https://github.com/danihodovic.png","language":null,"readme":"# pgcli-docker\n\nThin wrapper around pgcli (https://github.com/dbcli/pgcli). The default entrypoint is `[\"pgcli\"].`\n\n### Usage\n\n    docker run -it --rm --network container:$postgres_container_network danihodovic/pgcli -h postgres -U postgres\n\nYou can also use the zsh/bash hack below to connect to an image that is running postgres. It only works\nif there is a container running named `*postgres*`.\n\n\n    function pgcli-docker () {\n      postgres_container_names=$(docker ps | awk '{print $NF}' | grep postgres)\n      lines=$(echo $postgres_container_names | wc -l)\n      if [ \"$lines\" -eq 0 ]; then\n        echo \"No container with a name containing 'postgres' running\"\n        exit 1\n      fi\n      if [ \"$lines\" -gt 1 ]; then\n        echo \"More than one postgres container running: \\n$postgres_container_names\"\n        exit 1\n      fi\n\n      docker run -it --rm --network container:$postgres_container_names danihodovic/pgcli -h postgres -U postgres\n    }\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanihodovic%2Fpgcli-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanihodovic%2Fpgcli-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanihodovic%2Fpgcli-docker/lists"}