cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

Fix container healthcheck #245

Open feelingsonice opened 2 months ago

feelingsonice commented 2 months ago

Previous container creation logic had the following 2 issues afaik:

  1. Health check was too quick. Increasing this from 50 to 500 fixed the problem for me on M2 Max.
  2. Container setup logic didn't do cleanup after failure. Resulted in error messages like Conflict. The container name \"/cornucopia_postgres\" is already in use by container on subsequent startup.

Misc:

This fixes https://github.com/cornucopia-rs/cornucopia/issues/244