4 ms·
You can call chef/puppet/ansible from your Dockerfile to provision your container, but that loses the cool caching behaviour that docker gives you. We have a l
by bryanlarsen 13y ago
You can call chef/puppet/ansible from your Dockerfile to provision your container, but that loses the cool caching behaviour that docker gives you.
We have a large set of well-tested ansible scripts that we use for deployment, so we thought we'd use the "run ansible within the Dockerfile" approach. However, when we started doing that, we found that the configuration of each docker is actually fairly simple so we converted to (almost) pure Dockerfile. The ansible complexity was configuring and setting up a bunch of images and their configurations on a bunch of servers.
IOW, we use ansible to schlep around & configure the environment variables for the containers rather than creating them.