You can use a user variable and interpolate it in boot_command instead of HTTPIP.
If you are building within CI maybe you can reference the Kickstart files directly from the workspace over http. There have been some work done lately with floppy_files and floppy_dirs so it might be worth testing it again if you haven't tried it in a recent version. On Nov 26, 2016 2:27 AM, "Dan Tran" <[email protected]> wrote: > > solution 1 sounds self-contained, but we had a hard time with the floppy > device before. it intermittently failed very often and http_directory is a > bless > > solution 2: sounds very hard. I can discover the docker host, lock the > http port inside docker, how do i push it to boot_command? > > -Dan > > On Friday, November 25, 2016 at 12:26:47 PM UTC-8, Rickard von Essen wrote: >> >> Ok I interpret it as you run packer inside a docker container. >> >> There is two solutions. >> >> 1) put the Kickstart file on a floppy an old it from that >> >> 2) fix the http port and expose that from the container. This requires >> that know the docker hosts IP and portmapping so you can get this into the >> boot_command. >> >> >>> -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/5572a460-1105-4914-9cff-f83a9eed0998%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/5572a460-1105-4914-9cff-f83a9eed0998%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-Tb6Q_SLhin4VnbBc4dtyEBVpANR5%2Bt0e3ktv8zXuT%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
