![]() Building ACI imagesĪs well as Docker support, image_build also experimentally supports building Note that when using Rocker the Puppet tools are not left in the final The Rocker output provides a little moreĭetail about the build process, but also allows for mounting of foldersĪt build time which minimizes the size of the resulting image. This should use the code on the Puppet Master to build the image. Manifests/init.pp: include 'dummy_service' class -image-name puppet/node1 -expose 80 -cmd nginx Supported by the module yet so we drop a file in place. Ignore service resources in the Nginx module. Running Nginx and serving a simple text file.įirst lets use a few Puppet modules from the Forge. Something not natively supported by the tool. This is useful for both debugging and if you want to do You can also output the intermediary dockerfile using another See the full help page for other arguments for specifying differentīase images, setting a maintainer, using Rocker instead of Docker for theīuild and much more. puppet docker build -image-name puppet/sample -cmd nginx -expose 80 You can change values in the metadata file (usefulįor version control) or you can override those values on the command In the accompanying metadata.yaml file, while others are defaults The above is the simplest example of a build. Simply open up examples/nginx and run: puppet docker build The examples directory contains a set of examples for experimenting with. The intermediary dockerfile or shell script. One will trigger a build of an image, the other can be used to output With the module installed you should have access to two new puppetĬommands puppet docker and puppet aci. Or just installing Docker if you're on Linux. All you need is a working Docker environment orĪcbuild, for which I'd recommend Docker for Mac or Docker for Windows You don't need any additional gems installed unless you are looking to The following should work in most cases: puppet module install puppetlabs/image_build Puppetlabs/image_build is a Puppet Module and is available on the Forge. image_build allows for sharing commonįunctionality as Puppet modules, and Puppet itself provides a richĭomain-specific language for declarative composition of images. You're building a lot of images, but scaling Dockerfile means eitherĪ complex hierachy of images or copy-and-pasting snippets between.By sharing the same code betweenĬontainer and non-container based infrastructure you can cut down onĭuplication of effort, and take advantage of work you've already You have an existing Puppet codebase and you're moving some of your.Including Docker images, from Puppet code. The basic purpose of image_build is to enable building various images, Maintainers - who maintains this project.Reference - Sample help output from the tool. ![]()
0 Comments
Leave a Reply. |