Thank you, your demo is very cool and comprehensive
Re:Development Containers
by fatih-erikli on Wednesday January 25, 2023 @11:46AM
(#34520588)
You only need a PostgreSQL server installed on different machine. Maintaining a container will cost more on long term.
Dev containers support Docker Compose, is running the database inside the dev container preferable to using that? Or is that what you meant?
Yep, sorry for being unclear, I used docker-compose:
https://github.com/pamelafox/django-quiz-app/blob/main/.devc...
There are a few config options there that took some tweaking.
I am a dev container addict. I work on tons of different projects across languages, and it's so nice for the dev environment to just work (mostly- if it doesn't, it's because of M1 issues). I also love Github Codespaces (that uses dev containers), I've been using it for all my workshops lately and attendees tend to prefer Codespaces instead of local dev.
If you're looking for example dev containers, I've got a bunch of repos linked from my read me that have support: https://github.com/pamelafox
The trickiest ones have involved databases, but I was happy to be able to get PostgreSQL running inside the container, along with an admin for it! We did a Youtube stream showing that here: https://t.co/0Kl57Ew46C
Yesterday I got docker-in-docker working as I'm running a Docker workshop today and want Codespaces to be an option. So cool. That's at https://github.com/pamelafox/flask-surveys-container-app/tre...