Skip to content

A simple ansible project for demonstrating how to build a docker image

License

Notifications You must be signed in to change notification settings

jhidalgo3/ansible-docker-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-docker-demo

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

vagrant up

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 [1]: 

Just press enter twice to use the default value. Have a break, it should be done pretty soon.

About

A simple ansible project for demonstrating how to build a docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%