Packer-Warehouse
A warehouse to help you pack and ship your boxes!
Here, you'll find the templates you need for packer. Please do share your templates with others :)
QuickStart - Build Ubuntu vagrant box
git clone https://github.com/pierreozoux/packer-warehouse.git
cd packer-warehosue
packer build \
-var-file=var-files/ubuntu/13.04.json \
ubuntu.json
QuickStart2 - Build another box
- read the
readme/distribtion.md
file - if there are steps needed, do them
- adapt variables in the
var-files/ditribution/file.json
- adapt variables in
distribution.json
- check the scripts in
scripts/distribution/
- validate with
packer validate -var-file=var-files/ditribution/file.json distribution.json
- build with
packer build -var-file=var-files/ditribution/file.json distribution.json
Explanations of directory structure
http
It contains files that your VM will require during the build. It will be served by your workstation thou a temporary http server. You can access this server in the boot_command via 2 variables HTTPIP
and HTTPPort
. Please have a look to the ubuntu template or packer documentation for more explanations.
scripts
It contains the scripts used by the shell provisionner.
var-files
It contains the json files needed to customise the different templates.
readme
For each distribution, if the code is not enough, there is a little readme to explain how to work with!
Contributing
- Fork it
- Create your recipe branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some features'
) - Push to the branch (
git push origin my-new-features
) - Create new Pull Request