Packer workflow driven by Make, please have a look

574 views
Skip to first unread message

Alvaro Miranda Aguilera

unread,
Apr 6, 2015, 2:08:02 AM4/6/15
to packe...@googlegroups.com
Hello,

https://github.com/kikitux/packer-vagrant-oracle/tree/master/packer-make

OLD WAY:
I build plenty of different boxes with different configurations, and
so far I have been using bash script

The script monitor few sources, and when a updated package is
available, it delete-then-recreate the outdated box

NEW WAY:
Recently, due the number of boxes is growing, wanted to move to
something more clever, and found 2 projects using Make

# Inspired from:
# https://github.com/cloudfoundry/warden-test-infrastructure/blob/master/packer/Makefile
# https://github.com/YungSang/fedora-atomic-packer


so went an extra step and did follow what they did and I create an
intermediate box that all the other boxes reuse, so I cut the time a
lot.

https://github.com/kikitux/packer-vagrant-oracle/tree/master/packer-make

So basically you write 'make'

and make will kick a build, and look for new json files and updates
packages, and will create the new boxes and rebuilt the updated ones
if yum_repo is updated.

So far it does virtualbox and vmware, but should be trivial add AWS and others

Feel free to check, fork, and let me know if you will like to have
some other OS, just have Oracle Linux 7.1 at the moment, I will be
expanding to other OS I use

but add more is trivial..

If you fork and add more, let me know and I can incorporate those too

Thanks,
Alvaro.
Reply all
Reply to author
Forward
0 new messages