A simple ansible project for demonstrating how to build a docker image. Read the article - Building docker images with ansible
Run the demo
To run this demo, you need to install ansible and vagrant with vbguest plugin. Then
Then, let's build the image, here you run
ansible-playbook \ -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \ -u vagrant --private-key=~/.vagrant.d/insecure_private_key \ playbooks/hellobaby.yml
It will prompt you which version and interation number to build like this
hellobaby_version [1.0.0]: hellobaby_iteration :
Just press enter twice to use the default value. Have a break, it should be done pretty soon.