4 ms·
As someone who does pretty much this for my personal sites, and has a level slightly above at work, I can say anecdotally that your caveat is important. The way
by danpalmer 11y ago
As someone who does pretty much this for my personal sites, and has a level slightly above at work, I can say anecdotally that your caveat is important. The way you describe works well for me on personal projects, but at work we're really starting to see the benefit of the automation and reproducibility that things like Docker and Kubernetes provide. Ansible is great, but it's still easy to end up with non-reproducible environments, and that's something we've been bitten by quite a few times.
- clebio 11y agoCan you expand a bit on how you still end up with non-reproducible environments? Not that I doubt it! Just would like to here some details, or a specific example.
- luos 11y agoUsually when you ssh into the machine to fix something broken then forget to backport the changes to the ansible script.
- merb 11y agoThe same thing could happen with docker, too.
- vetinari 11y agoYou usually can't ssh into docker container because: 1) it usually doesn't have sshd 2) you change would be thrown away at nearest container restart or migration. The only way for it to persist is to do the right thing, i.e. apply the change where you should and have the container rebuilt.
- merb 11y agoYou don't need ssh to get into a docker container.
- danpalmer 11y agoDefinitely what luos said, but also you typically run repeatedly against the same machines, with changes on each run. This can lead to having a different environment depending on whether you ran once or multiple times. Conversely with Docker, you're essentially recreating from scratch every time you build the image, with some caching to make it fast though.
- TheIronYuppie 11y agoHow about just when your current machine (e.g. Mac) has a different supported version of Python? Disclosure: I work at Google on Kubernetes.
- metafunctor 11y agoUmm, you install the version of tools and libraries you've standardized on, and check them in your unit tests?