Packer template:
json file
sections in the json file:
builders-type field in the json file(like aws,azure):
generate your image
provider specific
multiple builder = cross-provider builds!
Provisioners:
customize your image
scripts or configuration management
can be builder-specific
Post-Processors:
put on the finishing touches
integration with other services
key to docker conversion
test lab:
3 servers.: web,app,database
packer.io - download for windows, add the extracted folder to path variable
#packer --help
packer build -debug template.packer
creates under ec2->images-> amis (in aws console)
json file
sections in the json file:
builders-type field in the json file(like aws,azure):
generate your image
provider specific
multiple builder = cross-provider builds!
Provisioners:
customize your image
scripts or configuration management
can be builder-specific
Post-Processors:
put on the finishing touches
integration with other services
key to docker conversion
test lab:
3 servers.: web,app,database
packer.io - download for windows, add the extracted folder to path variable
#packer --help
We can remove the last two lines as we set the two env
variables above.
Below is the image id we use in AWS.
Just to show how to cancel the console while running it.
Using ctrl+c
Change the spelling from MiddleTeir to MiddleTier
packer build -debug template.packer
creates under ec2->images-> amis (in aws console)
No comments:
Post a Comment