Thanks, this looks like a great suggestion. I gave it a try, created a new
clone of the repo, then added a new devcontainer using `bundle exec rails
container.`
Initially I was a bit struggling with (Debian, Rails, npm) packages on
generated devcontainer. I believe we can probably reuse a lot of the existing
Dockerfile and copy it over to .devcontainer/Dockerfile, thereby hopefully
addressing these issues. There's a bit of overlap between the
"postCreateCommand" in devcontainer.json and the existing Dockerfile, which
would need to be resolved.
Then I added memcached and mailpit to compose.yaml and adjusted
settings.local.yml accordingly. Both were fairly trivial to get up and running.
They allow me to run more production-like scenarios without much hassle. Also,
unit tests are passing successfully.
Overall I see a much improved DX compared to the old Dockerfile.
<details>
<summary>Sample screenshot</summary>

</details>
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5264#issuecomment-2423746669
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/5264/2423746...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev