dbt-labs / dbt-postgres

Apache License 2.0
31 stars 12 forks source link

[Tech debt] Add Postgres container for development so that integration tests can be run via Docker #99

Open mikealfare opened 5 months ago

mikealfare commented 5 months ago

Is this your first time submitting a feature request?

Describe the feature

Running integration tests against Postgres requires a manual setup of Postgres locally. It would be nice if this were automated, especially for community contributors that may not have Postgres always running locally. Additionally, this would support developing in a Docker container via docker/dev.Dockerfile since the connection credentials and parameters would all be deterministic.

Describe alternatives you've considered

We could do nothing. This would leave in the current state:

Who will this benefit?

Any contributors to dbt-postgres, including maintainers.

Are you interested in contributing this feature?

No response

Anything else?

No response

jtcohen6 commented 5 months ago

@mikealfare Do you see this as being the same or different from what we have in dbt-core today?

mikealfare commented 5 months ago

@mikealfare Do you see this as being the same or different from what we have in dbt-core today?

* https://github.com/dbt-labs/dbt-core/blob/main/docker-compose.yml

* https://github.com/dbt-labs/dbt-core/blob/341803d78454f26932267b4c5da361c83556e96a/Makefile#L101-L105

Ah, I didn't realize we already had that. Yes, it would probably be very similar. I would just set that up in the dbt-postgres repo and then make sure we could use it with the local virtual environment as well as a dev Docker environment.