Alternative to using file provisioner to install custom software in build

159 views
Skip to first unread message

Scott Watson

unread,
Sep 18, 2018, 11:04:45 AM9/18/18
to Packer
Hello Group,

I would like to include some software to be installed inside my packer build.  I was looking at the file provisioner but I don't think this will be optimal since the tar file is almost 4GB, then I have to extract it and then perform the install.  Does anyone know of a solution that would allow me to mount my software inside my build machine to be able to perform the install.  Should I even do this to begin with?  Maybe create another ISO image for this software and mount it or maybe NFS mount it it my build?  I am currently trying to build an image for VMWARE using workstation on my MAC if that makes a difference.  I am sure this is fairly simple but I want to be sure I am not missing something obvious.

thanks
Scott.

Lucas Jackson

unread,
Sep 18, 2018, 11:51:13 AM9/18/18
to packe...@googlegroups.com
Hey Scott,

You can utilize the http_directory variable in the builder to access such files over http during the build.


This is what I used for my Windows image builds, as WinRM file copying is painful and doesn't work well.


Luke


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/26286215-2641-46fc-8181-4e610b29f484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Watson

unread,
Sep 18, 2018, 2:42:51 PM9/18/18
to Packer
Hi Luke,

Thanks for the reply.  I'll have a look, however, I think I am going to try using a shared folder as I found an interesting post that I believe will allow me to do what I want more efficiently.


THanks
Scott
Reply all
Reply to author
Forward
0 new messages