3 ms·
Packer, from hashicorp, allows you to create various image-types from a JSON configuration file. https://www.packer.io/ https://www.packer.io/ It's a little b
by stevekemp 7y ago
Packer, from hashicorp, allows you to create various image-types from a JSON configuration file.
https://www.packer.io/ https://www.packer.io/
It's a little bit more low-level, but I use it to build images which run under VMWare and on EC2 in AWS. I tend to just use the configuration file to install ansible inside the new instance, then configure the actual system like that.
- eatonphil 7y agoI haven't used packer but it seems like operates at a different level? Dockerfiles are mostly about _provisioning_ an existing system but packer was more about getting correct configuration in place for VM providers and allowing you to specify strings to be run for provisioning. Edit: not an edit, but I realize it's a double standard to think of Dockerfile's as anything but specifying strings for provisioning.
- Znafon 7y agoPacker can be lower level but it can also do what Dockerfile do, see https://www.packer.io/docs/builders/docker.html https://www.packer.io/docs/builders/docker.html for the Docker support in Packer.
- y4mi 7y agoPacker is for building base images. You obviously need some provisioning there as well, but the focus is definitely on shipping iso images. Vagrant fits what you're after, but it'd wager you wouldn't be happy with it either. It's essentially a Ruby dsl with the same goal as docker, though vagrant is way older (and still works just fine if you actually need such automated provisioning). Testkitchen uses it if you're into infrastructure automation and want to see what sysadmins had pre docker.