3 ms·
Dockerfiles are basically Docker's way of doing config management. Pros: docker caches every step of your Dockerfile, so iteration is fast. Cons: Dockerfiles ar
by rgarcia 13y ago
Dockerfiles are basically Docker's way of doing config management. Pros: docker caches every step of your Dockerfile, so iteration is fast. Cons: Dockerfiles are basically glorified shell scripts. At Clever we basically have a single Dockerfile that calls our existing Salt setup, and so far it's worked decently well.
- andrewfong 13y agoIf your Dockerfile just calls Salt, is Docker then simply just a lightweight alternative to Vagrant + Virtualbox? Does your Dockerfile do anything besides call Salt? If so, what's a good rule of thumb for what goes into the Dockerfile as opposed to Salt or any other config management tool?
- rgarcia 13y agoIndeed--it's a lightweight alternative with a better deployment story IMO. A bunch of containers running on a set of hosts is easier to manage than a virtualization setup. Here's a simplified version of the dockerfile template we use: https://gist.github.com/rgarcia/7917826 https://gist.github.com/rgarcia/7917826. It basically outsources all of the work to a salt state.