Discuss Packer for building AMIs and Docker Images
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?
I get the above output when I run the packer template, any idea on whats going on?
@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?
Yeah doing that now, also upskilling my powershell logic to have logging and debugging
(why can’t the world run on linux)
Let us know what you find! (if anything) otherwise we can revisit and try to help you figure out.
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.
Anyone here use the checksum post processor to tag docker images with the checksum? Trying to figure this out