Giter Club home page Giter Club logo

vagrant-docker-puppet's Introduction

vagrant-docker-puppet

Example of using Vagrant to provide Docker (host plus container) and subsequently Puppet for the detailed provisioning of the Docker container.

This can be useful when:

  • the Dockerfile becomes very complex
  • Puppet is your preferred tool for configuring(certain aspects of) environments
  • during the container build process you want to make use of large files and/or intermediate files that you want not to be included in the layers underneath your container (or image)

The steps are:

vagrant up my-puppet-base-container => to provision the dockerhostvm (if required) and the Puppet enabled docker container vagrant ssh into dockerhostvm docker ps -a to find container id for the Docker container my-puppet-base-container docker start container id => this container runs with volume (folder mappings) to the host-folders files and puppet docker exec -it container id bash "/u01/run2Puppet.sh" => this script runs puppet apply on the base.pp manifest note: the local folder puppet/manifests contains Puppet manifest base.pp

docker commit containerId me/myimage:version1 => create an image for the current state of the container vagrant up my-complete-container

note: my-complete-container has a folder mapping to the local directory runtime-files (just to show that it is easy to do); it does not have the folder-mappings to files and puppet that my-puppet-base-container used.

vagrant-docker-puppet's People

Contributors

lucasjellema avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.