4 ms·
Disclosure: I work at Microsoft / Azure. I am a dev container addict. I work on tons of different projects across languages, and it's so nice for the dev envir
by pamelafox 4y ago
Disclosure: I work at Microsoft / Azure.
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 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 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/tree/main/.devcontainer https://github.com/pamelafox/flask-surveys-container-app/tre...
- victor106 4y agoThank you, your demo is very cool and comprehensive
- fatih-erikli 4y agoYou only need a PostgreSQL server installed on different machine. Maintaining a container will cost more on long term.
- eberkund 4y agoDev containers support Docker Compose, is running the database inside the dev container preferable to using that? Or is that what you meant?
- pamelafox 4y agoYep, sorry for being unclear, I used docker-compose: https://github.com/pamelafox/django-quiz-app/blob/main/.devcontainer/docker-compose.yml https://github.com/pamelafox/django-quiz-app/blob/main/.devc... There are a few config options there that took some tweaking.