Mitchell Hashimoto
0dfaacc09d
Enable panicwrap and put crash logs in crash.log
2013-08-13 23:55:05 -04:00
Mitchell Hashimoto
bebed45a80
packer: -machine-readable not double hyphen
2013-08-11 23:26:24 -07:00
Mitchell Hashimoto
f46bf47579
parse --machine-readable and set it
2013-08-11 23:12:20 -07:00
John Bellone
13ca445e13
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
e6557c53c2
ctrl-c closes stdin for plugins so that they are unblocked
2013-07-25 23:27:13 -07:00
Mitchell Hashimoto
8e79bb44a7
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
bad2bfc4e5
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
fb4a86ef35
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
bd937ec8f2
Fix typo
2013-07-09 09:28:07 +03:00
Mitchell Hashimoto
3b32ba9f11
scripts: Add git commit to builds
2013-07-08 15:37:01 -07:00
Jack Pearkes
280d176f73
packer: prints packers OS and architecture to the log during startup
2013-07-01 18:34:43 +02:00
Jack Pearkes
c7d9e88db3
packer: print packers version to the log during startup
2013-07-01 16:46:54 +02:00
Mitchell Hashimoto
091533246e
Make sure the cache dir is absolute
2013-06-20 12:37:17 -07:00
Mitchell Hashimoto
23712375aa
Default cache to "packer_cache" in CWD
2013-06-20 12:18:03 -07:00
Mitchell Hashimoto
ca7e8dbb74
Allow post-processors in the core configuration
2013-06-18 11:00:31 -07:00
Mitchell Hashimoto
a6e0ea8bd2
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