[openstreetmap/openstreetmap-website] Add devcontainer configuration (Issue #5264)
mmd
notifications at github.com
Sat Oct 19 10:27:56 UTC 2024
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/2423746669 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241019/33bfd60f/attachment-0001.htm>
More information about the rails-dev
mailing list