5 ms·
So you're using Docker instead of virtual environments? I feel there is much more overhead with Docker, but I could be wrong. Maybe I need to try it out again!
by odonnellryan 9y ago
So you're using Docker instead of virtual environments? I feel there is much more overhead with Docker, but I could be wrong. Maybe I need to try it out again!
- scaryclam 9y agoNo, it's pretty much the same as you remember it. Using docker instead of just a normal virtualenv is overkill.
- falcolas 9y agoOverkill - Yes and No. Yes, because you are spinning up a full VM to run a docker container locally. No, because the container is also the container run in prod, with no opportunity for some other process to come along and hose your otherwise clean install. The process and FS isolation also make sysadmin-me all tingly inside. That way you can't hose up anybody else's clean install either (even if you're compromised). As a side note, on mac, the VM that runs docker containers requires less ram and CPU than Hipchat. Go figure.
- odonnellryan 9y agoI'd never deploy more than 1 client to a machine anyway, so isolation in a security sense does not make much sense to me if I'm being honest. But I understand. If the workflow works for you and/or your team, well, what's the problem? It's working!
- mixmastamyk 9y agoAnd virtualenv can be overkill unless you've got multiple clients or legacy commitments.
- moogie 9y agoOr you don't want to hose your system python, or you don't want to shit all over any other work you may be doing, or you want to ever test on anything other than a single (probably polluted if you're screwing around using your system python for everything) environment, or you're a professional using python, or if you want to be taken at all seriously....the list goes on! And yeah, using your system python means you're either not doing any professional/serious work or you're a hack who needs to stop doing anything professionally/seriously.
- mixmastamyk 9y agoNever happened in twenty years, get over yourself. Manually installed packages are already segregated and can be uninstalled ya know.
- mixmastamyk 9y agoNever happened in twenty years. Manually installed packages are already segregated and can be uninstalled ya know. Might be a problem if you have no admin skills.
- moogie 9y agoWay to miss the point!...all of them! Nobody said anything about manually installed packages being unsegregated or immutable, so let's not put up any more straw men. It's just a stupid way to work. I think you may be the one without admin skills if you think working on your system Python is anything except reckless. No one cares that you have 20 years of doing it like that, it's a poor argument and shows up a really bad attitude.
- mixmastamyk 9y agoYour appeal to absolutes reeks of immaturity, lack of experience, and cargo-cult reasoning. On the contrary, if it rarely to never happens compared to the effort involved, it's not "reckless" at all, but a tradeoff. The site package folders are a simple path of files/folders, not hard to reason about. Nothing gets "hosed" without your participation. No need to live in mortal fear. In other words the cure is as bad as the disease. The truth is that venvs are a hack with a lot fewer use cases now that user packages at the low-end and containers at the mid/high-end are now ubiquitous. Honestly newbies would be a lot better off just avoiding venvs entirely. I make an exception for pipenv when appropriate since it hides the complexity as well as possible.