Skip to content
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

spec/support/database: support running postgres in docker #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented Jan 24, 2023

I'd rather not install postgres, its extensions, or configure test databases (and setup access to them) on my development machine. I'd much rather use a Docker container dedicated to that task that I can destroy as I see fit, which keeps my development environment clean. This trivial PR adds support for that workflow by adding a docker-compose.yml file that sets up a PostgreSQL image configured to run pg_search's test suite. It also adds support to spec/support/database for using that container's PostgreSQL instance to run the test suite by simply checking if the DOCKER environment variable is set.

Add a docker-compose.yml file that sets up a PostgreSQL image configured
to run pg_search's test suite. Add support to `spec/support/database`
for using that container's PostgreSQL instance to run the test suite
by simply checking if the `DOCKER` environment variable is set.

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
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.

None yet

1 participant