github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/examples/packer-hello-world-example/build.pkr.hcl (about) 1 packer { 2 required_plugins { 3 docker = { 4 version = ">=v1.0.1" 5 source = "github.com/hashicorp/docker" 6 } 7 } 8 } 9 10 source "docker" "ubuntu-docker" { 11 changes = ["ENTRYPOINT [\"\"]"] 12 commit = true 13 image = "gruntwork/ubuntu-test:16.04" 14 } 15 16 build { 17 sources = ["source.docker.ubuntu-docker"] 18 19 provisioner "shell" { 20 inline = ["echo 'Hello, World!' > /test.txt"] 21 } 22 23 post-processor "docker-tag" { 24 repository = "gruntwork/packer-hello-world-example" 25 tag = ["latest"] 26 } 27 }