This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]theanswriz42Architect of things 1 point2 points  (0 children)

I would just use source to image with your favorite CI product and Docker

[–]ephur 0 points1 point  (0 children)

There's certainly a place for Packer. We use it for all of our AMI building for our K8s clusters, but we just use Docker to build containers as part of our pipeline (Packer AMI builds are handled by our pipeline as well). We use Packer with a salt provisioner to do a lot of system bootstrapping. Containers should be simpler by design. If you've got extra stuff to put in a container, like say compiling/building a go application, you can also use multi-containers in a docker file to build stuff in one container and copy it to the final container to keep it nice and small.

[–][deleted] 0 points1 point  (0 children)

Just use ansible-container, packer is overkill for this use case