Adrien Delorme
a81abd297b
Merge remote-tracking branch 'origin/master' into context_provisioner
2019-04-08 20:09:01 +02:00
Megan Marsh
056fcb7cea
fix tests and add a few new ones
2019-04-03 11:32:49 -07:00
Adrien Delorme
82c4b76639
[Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method
2019-04-03 15:55:55 +02:00
Adrien Delorme
e65115a7a0
contextualize post-processor
2019-04-03 15:55:55 +02:00
Adrien Delorme
a4bf94dd3c
change Builder to be passed a context for cancellation
...
we have to to give it to our hook
2019-04-03 15:55:55 +02:00
Adrien Delorme
829851fc8a
change hooks to be passed a context for cancellation
...
we have to as it is what calls our provisioners
2019-04-03 15:55:54 +02:00
Adrien Delorme
c7ce4d598e
change Provisioner to be passed a context for cancellation
2019-04-03 15:55:54 +02:00
Megan Marsh
12fc1fa751
default_keep_input_artifact
2019-04-02 16:51:58 -07:00
Adrien Delorme
5a6dffde9a
use port as ints
2019-03-19 15:01:12 +01:00
Adrien Delorme
9f82b75e57
Use the hashicorp/go-getter to download files
...
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Adrien Delorme and Matthew Patton
b7222d1f56
Add tmp package that offers Dir & File funcs
...
this regroups the calls of tmp func calls into one package.
the tmp pkg allows to store tmp files under a common directory for easier managment
Squashed commit of the following:
commit 74b674c015
Merge: fc94b5714 66001525d
Author: Matthew Patton <[email protected] >
Date: Fri Nov 2 02:02:38 2018 -0400
Merge branch 'remove_TMPDIR_docs' of github.com:tb3088/packer into remove_TMPDIR_docs
commit fc94b57142
Author: Matthew Patton <[email protected] >
Date: Fri Nov 2 01:42:38 2018 -0400
update tests to honor configured temporary directory
commit 5a562359f4
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 18:52:38 2018 -0400
sync straggler to refactor. implement tests at packer/configfile instead of buried in docker.
commit 9d5a4a0935
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 15:39:46 2018 -0400
insert URL to GoLang API for os.TempDir()
commit fbae4c2e05
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 07:41:29 2018 -0400
revise documentation to match code
commit 3590fae8bd
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 07:21:59 2018 -0400
refacter config_file. replace all hard-coded os.TempDir with wrapper
commit d5c5306a97
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 20:11:36 2018 -0400
close massive file overwrite hole with TempDir
commit 0a72297da8
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 01:06:00 2018 -0400
adjust var declaration scope
commit 20f68228b6
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 00:54:35 2018 -0400
use mktemp() equivalent to create temporary directory
commit c73ebe3d83
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 20:40:58 2018 -0400
remove extraneous variable declaration, fix FOR loop
commit 63549b8bd7
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 19:30:44 2018 -0400
match styistic convension with rest of docs
commit 9761010749
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 19:08:39 2018 -0400
revert dangling config file change
commit 95159afbc0
Author: Matthew Patton <[email protected] >
Date: Fri Dec 29 23:53:43 2017 -0500
replace invalid TMPDIR variable wth PACKER_TMP_DIR.
update ConfigTmpDir() to try common temporary paths first and
only write to configDir() as a last resort.
commit 66001525d7
Author: Matthew Patton <[email protected] >
Date: Fri Nov 2 01:42:38 2018 -0400
update tests to honor configured temporary directory
commit e9b6adefea
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 18:52:38 2018 -0400
sync straggler to refactor. implement tests at packer/configfile instead of buried in docker.
commit 852113ed07
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 15:39:46 2018 -0400
insert URL to GoLang API for os.TempDir()
commit 54add38d1d
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 07:41:29 2018 -0400
revise documentation to match code
commit 6b5b8f6d4e
Author: Matthew Patton <[email protected] >
Date: Thu Nov 1 07:21:59 2018 -0400
refacter config_file. replace all hard-coded os.TempDir with wrapper
commit c22092c601
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 20:11:36 2018 -0400
close massive file overwrite hole with TempDir
commit 7a73045091
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 01:06:00 2018 -0400
adjust var declaration scope
commit 0f2933adb6
Author: Matthew Patton <[email protected] >
Date: Wed Oct 31 00:54:35 2018 -0400
use mktemp() equivalent to create temporary directory
commit d74839ede0
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 20:40:58 2018 -0400
remove extraneous variable declaration, fix FOR loop
commit eb65416619
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 19:30:44 2018 -0400
match styistic convension with rest of docs
commit acaa2b31ed
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 19:08:39 2018 -0400
revert dangling config file change
commit e573fde668
Author: Matthew Patton <[email protected] >
Date: Fri Dec 29 23:53:43 2017 -0500
replace invalid TMPDIR variable wth PACKER_TMP_DIR.
update ConfigTmpDir() to try common temporary paths first and
only write to configDir() as a last resort.
commit 39a9874afc
Merge: 8a413cfe8 3315812c2
Author: Matthew Patton <[email protected] >
Date: Tue Oct 30 18:19:26 2018 -0400
Merge branch 'master' of https://github.com/hashicorp/packer into prestine
commit 8a413cfe83
Merge: e07491de5 4e14710a6
Author: Matthew Patton <[email protected] >
Date: Mon Oct 1 20:18:10 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit e07491de59
Merge: 42610a35d a1fa35dff
Author: Matthew Patton <[email protected] >
Date: Tue Aug 21 13:26:19 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 42610a35d5
Merge: 5298142da 0d63cf7bc
Author: Matthew Patton <[email protected] >
Date: Tue Jun 19 22:45:05 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 5298142da6
Merge: 7bb110bc7 9d9736552
Author: Matthew Patton <[email protected] >
Date: Mon Jun 11 15:10:09 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 7bb110bc74
Merge: a61c869ca 6189d66e7
Author: Matthew Patton <[email protected] >
Date: Wed May 9 23:41:22 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit a61c869ca7
Merge: 098101dd9 4be5f072c
Author: Matthew Patton <[email protected] >
Date: Fri May 4 10:13:04 2018 -0400
Merge remote-tracking branch 'upstream/master' into prestine
commit 098101dd99
Merge: fefaf0fa6 554b2b4a5
Author: Matthew Patton <[email protected] >
Date: Tue May 1 20:52:30 2018 -0400
Merge branch 'EOL-handling' into prestine
Co-Authored-By: Matthew Patton <[email protected] >
2018-12-12 16:35:57 +01:00
SwampDragons
997f8e4a2a
Merge pull request #5318 from hashicorp/sigtermcleanup
...
Gracefully clean up on SIGTERM
2018-02-02 11:56:56 -08:00
Matthew Hooker
ebe995c0ff
run goimports
2018-01-22 17:21:10 -08:00
Matthew Hooker
fdaf4ed8d3
Gracefully clean up on SIGTERM
2017-09-08 11:42:32 -07:00
Luke Farnell
d9a5b69403
clean up ineffectual assignments
2017-08-07 13:20:01 -04:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
d920b3fbf4
run gofmt
2016-11-01 14:08:04 -07:00
Mark Peek
e5a713ff01
Alternative fix for #2641 : make random script name actually random
2015-10-11 13:31:09 -07:00
Mitchell Hashimoto
f259e7352a
packer/plugin: fix crash case, nil function call [GH-2098]
2015-05-29 11:30:56 -07:00
Mitchell Hashimoto
8dbe0f065c
Remove version from "packer" package
2014-10-27 20:51:34 -07:00
Mitchell Hashimoto
779b6d1719
packer/rpc, packer/plugin: remove Command interfaces
2014-10-27 20:40:24 -07:00
Mitchell Hashimoto
e9c2628a77
packer/plugin: clean up log output by only using the base
2014-09-03 21:11:43 -07:00
Mitchell Hashimoto
b7c604795e
packer/plugin: increase version for Yamux
2014-09-02 14:28:21 -07:00
Mitchell Hashimoto
ce7ea006c7
packer/rpc: use the msgpack codec
2014-04-26 13:31:34 -07:00
Mitchell Hashimoto
ae00414bbf
packer/plugin: communicate over unix domain sockets if you can
2013-12-11 12:24:45 -08:00
Mitchell Hashimoto
7ddf7ddad6
packer/rpc: remove the PortRange stuff
2013-12-10 18:49:07 -08:00
Mitchell Hashimoto
4c5d61709d
packer/plugin: catch interrupts for every server
2013-12-10 14:12:00 -08:00
Mitchell Hashimoto
b4567c6380
packer/plugin: use new RPC API
2013-12-10 13:47:18 -08:00
Mitchell Hashimoto
82cbf13f82
packer/plugin: new Builder interface
2013-11-02 22:51:26 -05:00
Mitchell Hashimoto
c7b10cb2cf
packer/plugin: detect invalid versions
2013-09-22 09:51:14 -07:00
Mitchell Hashimoto
6965af291b
packer/plugin: log git commit plugin was built against
2013-09-22 09:39:27 -07:00
Mitchell Hashimoto
47cd6df85b
packer: Add Cancel method to Provisioner
2013-08-30 23:21:15 -07:00
Mitchell Hashimoto
80e8e09ec7
packer: Add Cancel() method to hook
2013-08-30 17:03:55 -07:00
Mitchell Hashimoto
d5c6b9fad3
packer/plugin: Interrupted() to check for i nterrupts
2013-08-30 16:39:28 -07:00
Mitchell Hashimoto
893c9e02c0
packer/plugin: Count number of interrupts atomically
2013-08-30 16:29:21 -07:00
Mitchell Hashimoto
5887472a6f
packer/plugin: fix nil deref during ctrl-c of provisioner
2013-08-28 11:21:02 -07:00
Mitchell Hashimoto
faeba2a14f
packer/plugin: swallowInterrupts in plugin should swallow all
2013-08-23 14:22:32 -07:00
Mitchell Hashimoto
5559e49df3
packer/plugin: remove race in Exited()
2013-08-21 11:00:07 -07:00
Mitchell Hashimoto
c05b6d628b
packer/plugin: get rid of data race setting exited for Client
2013-08-21 10:56:58 -07:00
Mitchell Hashimoto
e4e372046b
packer/plugin: fix data race reading stdout in Client
2013-08-21 10:49:57 -07:00
Mitchell Hashimoto
cfa9cef2bf
packer/plugin: Set killed in the kill clients method
2013-08-19 23:39:14 -07:00
Mitchell Hashimoto
f68e00085b
packer/plugin: Killed bool to avoid panics when killing clients
2013-08-19 23:38:22 -07:00
Mitchell Hashimoto
de1e94eb90
packer/plugin: set TCP keep-alive on connection
2013-08-19 16:25:00 -07:00
Mitchell Hashimoto
00338a0b85
packer/plugin: trim whitespace on right of log data from plugin
2013-07-31 09:37:03 -07:00
Mitchell Hashimoto
ae28778caf
packer/plugin: flush os.Stderr whenever a plugin ends
2013-07-30 10:48:59 -07:00
Mitchell Hashimoto
69a5e83f47
packer/plugin: use chan struct{} for condition variable behavior
2013-07-30 10:43:43 -07:00
Mitchell Hashimoto
0dd4a4d83f
packer/plugin: clean up stderr
2013-07-30 10:41:02 -07:00
Mitchell Hashimoto
52dbb3c423
packer/plugin: more stable stderr logging
2013-07-30 10:38:48 -07:00
Mitchell Hashimoto
9289df6d35
packer/plugin: connect stdin to parent stdin
2013-07-25 21:24:49 -05:00
Mitchell Hashimoto
807896d63b
packer: PostProcessor can take multiple configs
2013-07-01 14:59:23 -07:00