Mitchell Hashimoto
806a8e0154
Move checkpoint into its own file to make it easy
2014-09-08 14:17:27 -07:00
Mitchell Hashimoto
1c380ea521
Checkpoint
...
(configs to disable will come next)
2014-09-08 14:10:17 -07:00
Mitchell Hashimoto
60182afb0b
Automatically discover plugins
2014-09-02 15:29:37 -07:00
Mitchell Hashimoto
9ef50487fb
core: Create cache directory only when needed [GH-367]
2014-04-26 20:33:12 -07:00
Mitchell Hashimoto
18f3588f35
packer: no colored output if machine-readable [GH-684]
2013-12-16 14:10:28 -08:00
Ross Smith II
ee7a6a22b3
fixed #584 log golang version in debug output
2013-11-11 08:42:27 -08:00
Mitchell Hashimoto
6171c6f485
Enable panicwrap and put crash logs in crash.log
2013-08-13 23:55:05 -04:00
Mitchell Hashimoto
a675b89b0e
packer: -machine-readable not double hyphen
2013-08-11 23:26:24 -07:00
Mitchell Hashimoto
46f5a9b1f6
parse --machine-readable and set it
2013-08-11 23:12:20 -07:00
John Bellone
1519341cb1
Update packer.go to cleanup plugin clients on exit.
...
Since defer does not fire when exiting the application with os.Exit we need to be sure that we cleanup all of the clients on failures from the CLI and creating a new environment object.
2013-08-08 12:16:28 -04:00
Mitchell Hashimoto
234508376a
ctrl-c closes stdin for plugins so that they are unblocked
2013-07-25 23:27:13 -07:00
Mitchell Hashimoto
5c00f2f50f
Clean up some of the log path detection code
...
/cc @markpeek I think this is much cleaner. Also, I made it so it
doesn't append by default... I like the idea of appending but it scares
me that for a bug report someone might put like a multi-megabyte gist of
logs at me. HAHA. We'll see.
2013-07-14 11:00:44 +09:00
Mark Peek
1d22f2efd6
Add PACKER_LOG_PATH for logging to a file
...
When the environment variables PACKER_LOG and PACKER_LOG_PATH are both
set the log output will be appended to the PACKER_LOG_PATH file.
2013-07-13 15:51:27 +00:00
Mark Peek
1c062aee61
Add ability to send log output to a file
...
Using PACKER_LOG=1 causes all the log output to be sent to Stderr. This
change maintains that backward compatility. Anything other than "1" will
be treated as a filename which will have logging appended to that file.
This is useful, for example, to always have debugging available without
cluttering up stdout (and without having to redirect stderr all the time).
2013-07-11 19:42:30 +00:00
Radu Voicilas
4ca564f73c
Fix typo
2013-07-09 09:28:07 +03:00
Mitchell Hashimoto
45dfcf59c9
scripts: Add git commit to builds
2013-07-08 15:37:01 -07:00
Jack Pearkes
dac59bf50e
packer: prints packers OS and architecture to the log during startup
2013-07-01 18:34:43 +02:00
Jack Pearkes
1014f4ba96
packer: print packers version to the log during startup
2013-07-01 16:46:54 +02:00
Mitchell Hashimoto
a2f7950f63
Make sure the cache dir is absolute
2013-06-20 12:37:17 -07:00
Mitchell Hashimoto
8b72879453
Default cache to "packer_cache" in CWD
2013-06-20 12:18:03 -07:00
Mitchell Hashimoto
540fac6454
Allow post-processors in the core configuration
2013-06-18 11:00:31 -07:00
Mitchell Hashimoto
e1cf5abde5
Don't depend on os/user anymore, which requires cgo
2013-06-17 22:10:11 -07:00
Mitchell Hashimoto
88d0368529
Change default config to `~/.packerconfig`
2013-06-11 11:26:13 -07:00
Mitchell Hashimoto
c98c16a5fc
Support PACKER_CACHE_DIR
2013-06-09 21:28:32 -07:00
Mitchell Hashimoto
7edfb66293
Clean up the configuration loading mechanisms, ditch toml
2013-06-08 22:26:49 -07:00
Mitchell Hashimoto
256b97ce49
Signal handling, force quit after two interrupts
2013-06-03 22:40:05 -07:00
Mitchell Hashimoto
9dfb536580
Support provisioners in Packer binary
2013-05-23 21:37:25 -07:00
Mitchell Hashimoto
a2bf964f30
packer/rpc: Properly support hooks
2013-05-11 11:11:40 -07:00
Mitchell Hashimoto
8ed313e7b5
packer: Add concept of hooks to Environment
2013-05-10 23:15:13 -07:00
Mitchell Hashimoto
44bd56c3a8
go fmt
2013-05-10 17:01:24 -07:00
Mitchell Hashimoto
cce59af2e8
Support builders in config, packer/rpc, packer/plugin
2013-05-08 21:05:35 -07:00
Mitchell Hashimoto
32ec0adbb0
Set PACKER_CONFIG for global config path
2013-05-08 20:56:44 -07:00
Mitchell Hashimoto
5e17fbdaca
packer: Set GOMAXPROCS for number of CPU if n ot set
2013-05-08 18:30:39 -07:00
Mitchell Hashimoto
5f8330ecc2
Parse/load configs
2013-05-08 18:13:15 -07:00
Mitchell Hashimoto
8ffbc2efe7
packer: Start pulling out the global config stuff
2013-05-08 17:28:05 -07:00
Mitchell Hashimoto
6633f3df80
packer: Handle errors with executing the CLI
2013-05-08 14:53:20 -07:00
Mitchell Hashimoto
947209a028
packer: PACKER_LOG to toggle logging from an env var [GH-3]
2013-05-08 14:45:17 -07:00
Mitchell Hashimoto
adb533fd3e
Properly defer a client cleanup in case of a pnic
2013-05-08 13:06:57 -07:00
Mitchell Hashimoto
abb51ebb35
packer/plugin: Don't wrap bytesBuffer in bufio, fixes GH-10
2013-05-08 13:02:21 -07:00
Mitchell Hashimoto
286f0aa91c
More logging, some tweaks to the format
2013-05-08 12:43:41 -07:00
Mitchell Hashimoto
26a998f721
packer/plugin: Managed clients for automatic cleanup
2013-05-08 11:54:59 -07:00
Mitchell Hashimoto
4d9b5fa86d
packer/plugin: Better command logging, but not good enough yet
2013-05-08 10:52:23 -07:00
Mitchell Hashimoto
8a32494e3f
Start working on logging across the board
2013-05-08 09:46:37 -07:00
Mitchell Hashimoto
17188f078d
Get packer compiling again
2013-05-07 23:09:34 -07:00
Mitchell Hashimoto
f601625f7b
Commands
2013-05-07 13:40:49 -07:00
Mitchell Hashimoto
04563764a0
`packer build` now communicates through RPC!
2013-05-07 11:50:42 -07:00
Mitchell Hashimoto
8697cb6f6a
Get packer building again
2013-05-07 11:09:36 -07:00
Mitchell Hashimoto
fefd2ae208
Separate commands into other directories
2013-04-21 19:04:35 -07:00
Mitchell Hashimoto
298c0ffa17
Use default environment for now for packer
2013-04-20 19:09:53 -06:00
Mitchell Hashimoto
116442510b
Require configuration to create Environment
2013-04-20 19:00:03 -06:00