Quote:
Originally Posted by PJo336
Even just doing docker run <test-command> takes longer than a local run of <test-command>
OK but again docker run is starting up the container from scratch.
I decided to do some timings. It looks like a "noop" takes about 200ms to run from outside with docker-exec (compared to less than 1ms inside). That really doesn't seem like enough lag to care.
Quote:
I am getting a new comp tomorrow and my goal is to not actually install any tools or databases, but I am pretty sure I will give up within a week.
I have basically nothing installed on this machine except like you know, GUI tools. I work on this laptop, another laptop, and a linux machine upstairs and I can move from one to the other without skipping a beat, it's great.
Quote:
Oh and that is the other annoyance, lots of ide/text editors need some kind of language server and other plugin support to even lint or format correctly, so unless you are vimming inside the docker container, you end up needing to install some stuff
Most good IDEs have docker support. I find it to be... a little awkward. I am mostly writing python so I have 2 choices:
* have it use the environment from inside my docker container - except I don't always have or want them running
* have a few python virtualenvs that the IDE uses to library resolution
I do the latter. But my IDE takes care of it.
And actually for some of the work I do what I love the most is, bring the container down, bring it back up, it's back to it's default state. I was testing getting an RPM package to work and I had a container set up with everything it needed and the entrypoint was just just "install the package" and I could do it again and again and again super fast, no steps required, just docker run over and over. I used to use vmware and I was always fiddling with restoring save states. Of course in the bad old days we were actually using physical computers.
I remember a place I used to work had a room full of computers with different OSes and versions and if you had a cross platform bug you'd be moving from place to place, uninstalling, reinstalling and trying it out. Hoping you didn't screw up and need to start over. Never really sure if what you were doing would work on a clean machine. Virtual machines were a huuuuge upgrade even though they ran at a small fraction of real speed.