I’m actually doing something very similar to what you are doing and am using a data bag like Matt suggested. In my case, I use Chef to manage the configuration file as a template and store it in a config directory on the Docker host, not in the container directly.
Then, I share the directory the config file is in with the Docker container when the container is run using ‘-v /path/to/config/on/host:/config'. Finally, I set the ENTRYPOINT for the container to be a simple shell script that moves my mounted config file
where my app expects it to be, then runs the app. This sounds a bit convoluted, but actually works very well and is not as complicated as it sounds. Check out the docker-registry’s Dockerfile and config setup for a similar approach: https://github.com/dotcloud/docker-registry/blob/master/Dockerfile.
Using this method, I can build all my containers using Jenkins without having to store sensitive information in them and can manage their configuration using Chef and encrypted data bags.
--
Ryan Walker Rackspace Hosting On February 11, 2014 at 9:52:14 AM, Rudi ( "> ) wrote:
|
Archive powered by MHonArc 2.6.16.