[READ-ONLY] Mirror of https://github.com/shuuji3/packer-tutorial.
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add shell provisioner

+10
+10
docker-ubuntu.pkr.hcl
··· 17 17 sources = [ 18 18 "source.docker.ubuntu" 19 19 ] 20 + 21 + provisioner "shell" { 22 + environment_vars = [ 23 + "MESSAGE=hello world" 24 + ] 25 + inline = [ 26 + "echo Adding file to Docker container", 27 + "echo \"MESSAGE is $MESSAGE\" > message.txt" 28 + ] 29 + } 20 30 }