Top "Packer" questions

PACKER QUESTIONS MUST BE PROGRAMMING RELATED.

Convert Amazon EC2 AMI to Virtual or Vagrant box

I'd like to copy the disk image of a running EC2 instance (grab the AMI) and import it into virtual …

amazon-ec2 virtualbox vagrant ec2-ami packer
Docker image format

I would like to build a Docker image without docker iself. I have looked at Packer, but it requiers to …

docker packer openembedded yocto
How are docker and packer different? And which one should I prefer when provisioning images?

How is packer and docker different? Which one is easier/quickest to provision/maintain and why? What is the pros …

docker docker-compose dockerfile packer
How can I convert a Docker image into a (vagrant) VirtualBox box?

I've been looking at Packer.io, and would love to use it to provision/prepare the vagrant (VirtualBox) boxes used …

virtualbox vagrant docker packer
Packer can't execute shell provisioner as sudo

I have a shell provisioner in packer connected to a box with user vagrant { "environment_vars": [ "HOME_DIR=/home/vagrant" ], "…

shell root provisioning packer
Having trouble creating a basic AWS AMI with Packer.io. SSH Timeout

I'm trying to follow these instructions to build a basic AWS image using Packer.io. But it is not working …

amazon-web-services packer
How to pass argument in packer provision script?

I am struggling to pass input parameter to packer provisioning script. I have tried various options but no joy. Objective …

packer
packer templates and conditional statements

I'd like to use conditional statements in the packer template at the "provisioners" stage. "provisioners": [ { "execute_command": "echo 'vagrant'|sudo …

packer
Packer build fails due to tty needed for sudo

My packer build is failing with the following message: sudo: sorry, you must have a tty to run sudo. My …

vagrant virtualbox sudo packer
How to use AWS roles with Packer to create AMIs

I'm currently building AMIs via Packer without a problem, but I am baking the AWS credentials into my scripts which …

amazon-web-services packer