[openstreetmap/openstreetmap-website] Wtf devcontainer (PR #6810)
Pablo Brasero
notifications at github.com
Thu Feb 12 15:44:20 UTC 2026
Following my tribulations at https://github.com/openstreetmap/openstreetmap-website/pull/6713, this helped me making the dev container work on both macOS/arm64 and Linux/amd64.
The main problem appeared to be with the way I set up a volume to cache the packages downloaded by Bundler. At the time this seemed like a good idea and worked. In fact I do think otherwise it would install the packages every time? Either I misinterpreted something or something has changed. Whatever. This works.
Another issue I ran into had to do with Postgres versions. The Docker image used by the dev container setup includes tools such as `pg_dump` which is used to generate `db/structure.sql`... but these tools expect Postgres v15. Since `compose.yaml` declares `postgres:16`, there's an incompatibility. How this worked for me on Linux and not on macOS is beyond my understanding, but it fixes things.
Additionally I have included a section in the docs explaining how to reset the DB when this happens.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6810
-- Commit Summary --
* Ensure version of Postgres compatible with client tools
* No idea how, but this appears to be interfering under macOS/arm64
* Explain how to regenerate a Postgres development volume
-- File Changes --
M .devcontainer/compose.yaml (4)
M doc/DEVCONTAINER.md (26)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6810.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6810.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6810
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6810 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260212/cc88cd52/attachment.htm>
More information about the rails-dev
mailing list