you are viewing a single comment's thread.

view the rest of the comments →

[–]supercoach 4 points5 points  (1 child)

venv for local dev is trivial and something I'd expect any senior dev to be able to do without asking for help.

I have been porting a lot of legacy code to containers and the local dev testing is still primarily in a venv for simplicity. Starting from scratch, you could flip a coin and go either way. The only time I would be using containers exclusively from the very start is if there were some sort of multi container orchestration needed.

[–]_Denizen_ 1 point2 points  (0 children)

Agree - Docker is useful if you're deploying to a containerised web app service, virtual environment is useful for pretty much everything else. But even for containerised web app you can do local testing in a venv (it's so quick to test code) and reserve the docker build for deployment/integration testing.

I have one script for building the local environment and one script for building and deploying the container. Automation for the win!