All Projects → tcnksm-sample → packer-docker

tcnksm-sample / packer-docker

Licence: other
Sample of building docker image by packer with chef or puppet, ansible provisioning

Programming Languages

ruby
36898 projects - #4 most used programming language
Puppet
460 projects

Build Docker image by Packer

You can build Docker images without Dockerfile.

How to build

Run docker

$ vagrant up

This will install docker and packer in vagrant box.

$ vagrant ssh

Chef

Build docker image with chef provisioning

$ packer build machine_chef.json

Check it.

$ docker run -t -i tcnksm/packer-chef:0.1 bash

Puppet

Build docker image with puppet provisioning

$ packer build machine_puppet.json

Check it.

$ docker run -t -i tcnksm/packer-puppet:0.1 bash

Ansible

Build docker image with ansible provisioning

$ packer build machine_ansible.json

Check it.

$ docker run -i -t tcnksm/packer-ansible:0.1 bash
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].