Why
As a developer who works on couple of projects, I wanted to find a way that -
My setup time will be as fast as possible
It would b...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for sharing. A few (opinionated) things come to mind.
git(or at least another CVS). Docker does not replace git.Dockerfiles, anddocker-compose*.ymls inside your git repo.docker-compose -f docker-compose.dev.yml up(or similar), and let them work on their own machines. The whole point of using git is so multiple people can work on their own copies at the same time.USERinside my Dockerfiles.Hey!
I did not mean to replace
git, as I said i'm using it to version control my code, not my environmentI know about
docker-composeandssh keysbut I want to write this blog post for the average user, so I left it behindAnd about using
rootI agree when it comes to "real" servers, when we talk aboutdockersyou can in a single command restore it and so nothing bad can happenI agree you should never blog how to do something insecurely by default just because it's easier. That's why the state of security is the way it is, and why all PHP coders suck.
All PHP codes suck? That's quite harsh. Most of the internet is written in PHP (including most of what Facebook makes). I think that's an offensive generalization. As eranelbaz said, he only uses it for local development. I think that as long as your shared environments (staging, production etc.) Are properly secured, setting up local unsecured docker is pretty much like running a local instance of your application with root. No harm, as no one has access to it but you.
Most of non PHP coders said PHP Coders are suck, because most of the job ask for PHP.
What's the most secure programming language?
It's all depend on Developer, not the programming language
I was using vagrant for a few years, for local dev, then I move to docker a couple of years ago, now I prefer to develop on a remote vps with vs code remote dev plug in.
As long as I good internet (which is not always the case for a digital nomad like me) I found it to be my preferred method of dev
Nice explanation
If you use volumes, you don't care if the docker crashes and you don't lose any data.