Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add psql to the container image. #607

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

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

nicolasvan
Copy link
Contributor

I'd like to propose that we add psql to the container image.

We are currently using it to implement container health checks this way:
PGPASSWORD="<some-password>" psql -U pgcat -p 6432 -h 127.0.0.1 -tA -c "show version;" -d pgcat >/dev/null

and would be keen to use the ghcr.io/postgresml/pgcat image directly without having to rebuild our own.

Unless there is a better way to detect pgcat getting unhealthy?

It could be used to implement container health checks.
Example:
  PGPASSWORD="<some-password>" psql -U pgcat -p 6432 -h 127.0.0.1 -tA -c "show version;" -d pgcat >/dev/null
@levkk
Copy link
Contributor

levkk commented Sep 27, 2023

This works great for a container healthcheck. Thank you!

@levkk levkk merged commit a054b45 into postgresml:main Sep 27, 2023
@rmenn rmenn mentioned this pull request Feb 2, 2024
@nicolasvan nicolasvan deleted the add-psql-to-docker-image branch March 12, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.