News for hackers. Stuff that matters.
Re:Run More Stuff in Docker by sverhagen on Sunday December 27, 2020 @04:20AM (#25549888)
I fully agree with the original premise (to run more stuff in Docker). But if I maintain two tools, both using Docker, let's say they're both built in Python, they'll both be in their own Git repository, and their build pipelines will come up with independent Docker images for whomever wants to use those tools, and it seems like frivolous maintenance, if not an anti-pattern, to make sure that these tools are always using the same base image. And yes, if bandwidth and disk space were constraint for me, I'd probably reconsider (even on the original premise), but they are not.

By the way, while I think you should run more stuff in Docker, I also think it is still totally reasonable to have your "main language stuff" installed "normally" (not in Docker). If I'm a Java developer, I'm "happy" to deal with Java's dependency b.s. on my normal system. Meanwhile, if I ever have to touch Ruby, I do not want to deal with Ruby's dependency b.s. on my normal system (rather run that in Docker). And vice versa, as I'm sure.

Re:Run More Stuff in Docker by solarengineer on Sunday December 27, 2020 @05:11PM (#25554720)
As a Ruby, Node or Python language user, you may want to try rbenv, nodenv or pyenv respectively.
Re:Run More Stuff in Docker by pdimitar on Tuesday December 29, 2020 @06:35AM (#25568839)
Or the ASDF version manager that covers all of them, and much more.
Re:Run More Stuff in Docker by Kwpolska on Sunday December 27, 2020 @01:09PM (#25552929)
Both of your Python projects will likely have `python:latest` (or such) as their base image. Sure, they will diverge after that (with further layers for dependencies and your code), but at least the base system will be shared.
Re:Run More Stuff in Docker by sverhagen on Sunday December 27, 2020 @10:26PM (#25556420)
Even if they used python:latest (as if that is the only flavor), they're only "latest" when I do my build. So, now I have to coordinate builds and releases. Unlikely to happen, and, again, an anti-pattern.
Re:Run More Stuff in Docker by LucasLarson on Sunday December 27, 2020 @09:29AM (#25551250)
> If I'm a Java developer, I'm "happy"

Oh yes, it would make me "happy", too.