packer/builder/amazon/chroot
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
..
builder.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
builder_test.go amazon/chroot: Allow creating new block device mappings !not fromScratch 2019-03-04 13:11:14 -08:00
cleanup.go move multistep imports to helper. 2018-01-24 17:09:15 -08:00
command.go builder/amazon/chroot: CommandWrapper 2013-09-30 09:33:57 -07:00
communicator.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
communicator_test.go run goimports 2018-01-22 17:21:10 -08:00
copy_files.go builder/amazon/chroot: CommandWrapper 2013-09-30 09:33:57 -07:00
copy_files_test.go builder/amazon/chroot: get tests psasing on Windows 2014-04-26 12:31:55 -07:00
device.go Formatting 2014-07-29 16:15:53 -07:00
device_test.go Add volume and run tags if in us-gov/china 2018-02-05 16:39:20 -08:00
lockfile.go builder/amazon/chroot: fix compilaton on Windows 2013-07-30 21:50:59 -07:00
lockfile_unix.go Fix building packer on GOOS=solaris 2017-08-14 10:34:06 -07:00
run_local_commands.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
step_attach_volume.go move UI call to before the wait; add context to these steps 2018-07-11 10:36:21 -07:00
step_attach_volume_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_check_root_device.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_chroot_provision.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_copy_files.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_copy_files_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_create_volume.go Add support to support non-gp2 volume types for building from_scratch 2018-09-06 13:22:09 -07:00
step_create_volume_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_early_cleanup.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_early_unflock.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_flock.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_flock_test.go builder/amazon/chroot: let go of flock earlier for parallelism 2013-07-30 22:25:33 -07:00
step_instance_info.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_mount_device.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_mount_device_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_mount_extra.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_mount_extra_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_post_mount_commands.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_pre_mount_commands.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_prepare_device.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_register_ami.go amazon/chroot: Allow creating new block device mappings !not fromScratch 2019-03-04 13:11:14 -08:00
step_register_ami_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_snapshot.go move UI call to before the wait; add context to these steps 2018-07-11 10:36:21 -07:00