3 ms·
> I was very junior, but I told my boss if we shouldn't maybe use base images that already contained everything, instead of a default blank ubuntu for the serve
by KronisLV 3y ago
> I was very junior, but I told my boss if we shouldn't maybe use base images that already contained everything, instead of a default blank ubuntu for the servers.
Honestly, nowadays Docker and other OCI containers do this pretty well. Spinning up new instances and even provisioning nodes has become very easy, in addition to load balancing features those provide.
12 factor apps are also an amazingly concise way to develop and manage multiple services without going into YAML hell: https://12factor.net/ https://12factor.net/
The problem is that the management layers around containers are typically overcomplicated to the point of comedy.
Kubernetes might make sense with something like K0s or K3s might make some sense but is still inherently a full time position to run on prem (with updates and observability) and will cause headaches. Hashicorp Nomad is better, but is meant for scales greater than those of most companies. Docker Swarm hits the spot (especially with something like Portainer), but nobody seems to actually care because it's not a trendy piece of tech.
The day Docker Swarm dies is the day I go back to writing PHP in a shared hosting environment in protest.
- LtWorf 3y agoIt's not fast if you refuse to create a pre-made image and recompile everything instead. Docker won't make it any more fast.
- KronisLV 3y ago> refuse to create a pre-made image Docker made doing the right thing really easy, to the point where doing that is a no brainer. I guess there are people out there who might still use OCI containers as glorified stateful VMs, but luckily the majority of documentation and examples out there build proper images that have everything included by the time it actually runs and you have to actively go against that if you want the other approach.
- LtWorf 3y agochroot and debootstrap and mkfs have existed for decades before docker. It would have been no problem to create a ready image. The problem was the refusal to do so.