Open hc-github-team-packer opened 2 years ago
This issue was originally opened by @mprzybylski in https://github.com/hashicorp/packer/issues/11283 and has been migrated to this repository. The original issue description is below.
Hello,
I took @SwampDragons up on her suggestion in issue #8120 to "tinker and can figure out how to make (distroless images) work":
run_command
["-d", "-i", "-t", "--entrypoint=/busybox/sh", "--", "{{.Image}}"]
/busybox/sh
/bin/sh
provisioner "shell-local"{ inline = ["docker exec ${build.ID} ln -s /busybox/sh /bin/sh"] }
/busybox
provisioner "shell-local" { only = ["docker.ebpf_sensor"] inline = ["docker exec ${build.ID} rm -rf /bin/sh /busybox"] }
Hope this helps!
-Mike Przybylski
This issue was originally opened by @mprzybylski in https://github.com/hashicorp/packer/issues/11283 and has been migrated to this repository. The original issue description is below.
Hello,
I took @SwampDragons up on her suggestion in issue #8120 to "tinker and can figure out how to make (distroless images) work":
run_command
for the docker source to["-d", "-i", "-t", "--entrypoint=/busybox/sh", "--", "{{.Image}}"]
/busybox/sh
to/bin/sh
to make shell provisioners work:/busybox
directory after all other provisioning is complete:Hope this helps!
-Mike Przybylski