News for hackers. Stuff that matters.
Re:More developers use Linux than Mac, according to 2022 Sta... by yolo3000 on Wednesday December 28, 2022 @02:38PM (#34164933)
Why do you use docker to build local stuff?
Re:More developers use Linux than Mac, according to 2022 Sta... by ytjohn on Wednesday December 28, 2022 @03:03PM (#34165210)
Our team has pipelines that builds, runs, and tests our code in containers. We like to approximate this locally with docker compose. This helps eliminate things like forgetting to update pyproject.toml. Additionally, since the pipeline uses an internal artifactory/harbor (no external Internet), the containers we use have environment variables using the internal resources.
Re:More developers use Linux than Mac, according to 2022 Sta... by spamizbad on Wednesday December 28, 2022 @03:47PM (#34165743)
Good question: we actually decided to just not do this for local "statics". But having everything containerized makes it easier to attach editor contexts, work in the same environment as your CI/CD system etc.

The other upside of being fully containerized - even for FE stuff - is that you side-step having to worry about having any sort of "local" dev environment configured beyond Docker/Podman/etc and some environment variables set. It makes onboarding new developers a breeze and eliminates "Weird, works locally on my machine!" types of issues.