#packer - September 2019

packerArchived
10 messages

Discuss Packer for building AMIs and Docker Images
Archive: https://archive.sweetops.com/packer/

September 2019
Callum Robertson
Callum Robertsonabout 7 years ago
Hey @davidvasandani maybe you can help with my headache. I'm fairly new to Packer, I've written and aws ebs backed AMI template that runs an powershell script that connects a PS Drive to a remote file system and then runs an executable from that PSDrive, my logs says it runs the script defined in the packer template but I see no effect on the AMI once I deploy it, can you help?
Callum Robertson
Callum Robertsonabout 7 years ago
Callum Robertson
Callum Robertsonabout 7 years ago
Callum Robertson
Callum Robertsonabout 7 years ago
I get the above output when I run the packer template, any idea on whats going on?
davidvasandani
davidvasandaniabout 7 years ago
@Callum Robertson I don't have much experience with Packer and Windows but I will need to practice for an upcoming project. Have you attempted to run Packer in debug mode and remote into the instance to run the command before it terminates?
Callum Robertson
Callum Robertsonabout 7 years ago(edited)
Yeah doing that now, also upskilling my powershell logic to have logging and debugging
Callum Robertson
Callum Robertsonabout 7 years ago
(why can't the world run on linux)
davidvasandani
davidvasandaniabout 7 years ago
Let us know what you find! (if anything) otherwise we can revisit and try to help you figure out.
Callum Robertson
Callum Robertsonabout 7 years ago
Hey if anyone was interested, the problem was actually how Packer handles persistent consoles when it runs it's provisioners, I had to increase the scope of the PS Drive to a global for it to persist past the instance of the scripting console.
Brandon Wilson
Brandon Wilsonabout 7 years ago
Anyone here use the checksum post processor to tag docker images with the checksum? Trying to figure this out