Closed joaodubas closed 2 months ago
I don't think there is much difference, in basic usage, between the two. So if you make a PR that either
Then I could look into it.
Thanks for the suggestions. I'm looking into the best approach to turn off the image validation with a control field.
Thanks for all the help. With the release of 1.8.3, I can execute the postgis
database using the Testcontainers.PostgresContainer
implementation. I adjusted my application.ex
with:
if Application.get_env(:testcontainers, :enabled, false) do
{:ok, _container} =
Testcontainers.Ecto.postgres_container(
app: :foundation,
image: "postgis/postgis:16-3.4-alpine",
check_image: "postgis/postgis"
)
end
I configured
testcontainers
on one of my projects that usespostgres
with thepostgis
extension enabled. When I try to execute the tests, I receive this message:As you can see, I'm using the image
postgis/postgis
on the tests. Howerver there is a validation that prevents executing images other than the officialpostgres
.In this case, what would be best solution:
Testcontainers.Postgrescontainer