EndPointCorp / end-point-blog

End Point Dev blog
https://www.endpointdev.com/blog/
17 stars 65 forks source link

Comments for Provisioning a Development Environment with Packer, Part 2 #946

Open phinjensen opened 6 years ago

phinjensen commented 6 years ago

Comments for https://www.endpointdev.com/blog/2014/03/provisioning-development-environment_14/ By Mike Farmer

To enter a comment:

  1. Log in to GitHub
  2. Leave a comment on this issue.
phinjensen commented 6 years ago
original author: Suresh Surendran
date: 2016-02-06T04:17:35-05:00

Nice article. I am working on provisioning a docker image using packer. I was using packer's docker provisioner to start up a docker image and ansible-local provisioner to deploy my app to this docker image. All looks good. Only thing i am not happy about is that I had to install Ansible in the docker image in-order to run run my ansible-playobook. This makes my docker image bit heavier than I would like to.

Suresh

phinjensen commented 6 years ago
original author: Ben Creasy
date: 2017-07-23T00:33:51-04:00

Looks like the docs have a solution for this? https://web.archive.org/web/20170723043159/https://www.packer.io/docs/provisioners/shell.html#sudo-example

I suspect it came after this blog post, but let me know if there are advantages to using ansible.

ghost commented 4 years ago

You mentioned everything can be done as root in packer. I wonder how you do that ? Thank you