Conversation
VS Code's Podman support for Dev Containers proved unreliable (rootless UID namespace mapping conflicts with bind-mounted files, and postStartCommand-launched background processes can silently fail to start). Scope this setup to Docker Desktop/OrbStack and point Podman users to the existing manual setup in DEVELOPMENT.md. Also: - Load the series_type fixture on a fresh database, matching the documented manual setup. - Drop --noreload from the auto-started dev server so edits are picked up without a manual restart.
|
I saw your recent commit about podman being unreliable in VSCode. I'm happy you were able to test and see some issues. My own setup is VSCode and podman on Linux and I haven't had any issues getting Dev Containers to work. |
bpepple
left a comment
There was a problem hiding this comment.
So, it looks alright for the most part tho I made some changes for a few items:
- Load the
series_typefixture on a fresh database. - Drop --noreload from the auto-started dev server so edits are picked up without a manual restart.
- Scoped this to a Docker-only usage, since if a user tries to use podman with VS Codes Dev Contrainers they will waste a ton of time trying to get it to workable state (which is why I never added dev containers support).
Before committing this, tho I'd appreciate it If you could test that the changes I made to make sure it doesn't break your Docker set-up
You're running the container as root I assume? If a user wants to run it rootless, it's pretty painful to do with VS Code. podman-compose, does not reliably not honor healthcheck-gated depends_on, so users can risking a migrate-before-DB-ready race (and all kinds of other ugliness). I ran into this constantly, and never could get the |
No. :) I'm running rootless. I tested the changes you made and asked Claude for some help figuring out how to get rootless podman working in your environment. I tested your changes and my new changes and they work for me. Will you please test again? There are now two compose yml files. One for Docker/OrbStack and the other for podman. Podman needs an extra declarative that Docker doesn't need. I also fixed the server startup issue you mentioned in your commit message. I appreciate you taking the time to review this pull request. From Claude:
|
|
🤔 Hmm, okay. Well, if every step worked well in your setup except starting the dev server post create: how about adjusting the devcontainers readme to add a last step of running the dev server from the command line? I still think the automatic things this setup does and the major benefit of every developer having the same environment are large gains worth keeping. Since you are much more familiar with this codebase I'll, of course, defer to your opinion. Do what you feel is best. 😊 |

Description
I have added a modern Dev Containers setup to much more quickly get new contributors into a development environment.
Check out
.devcontainer/README.mdfor details.Summary (all done automatically)
Checklist
wrapped for translation in templates.