3 ms·
Dev should look just like production if you are doing it right, and you are correct dev was basically an afterthought in Docker. If you run this in a screen se
by mike_d 5y ago
Dev should look just like production if you are doing it right, and you are correct dev was basically an afterthought in Docker.
If you run this in a screen session it will auto rebuild as you make changes, which is the closest I've been able to come to containerizing my development style:
https://gist.github.com/mikedamm/53dc6a78b976eeac88893427424c2527 https://gist.github.com/mikedamm/53dc6a78b976eeac88893427424...
- aszen 5y agoWhen people say docker helps in making dev look like prod, I assume they are running everything on docker in production, but that is very rarely the case with dbs, queues and cloud specific services. Interesting I'll check this script, but I have doubts doing a rebuild is going to be quick enough even with good cache layering in the Dockerfile. Use case is that I have frontend and backend code in one repo, and make changes across them that need to be reflected in the ui.