Commit Graph

125 Commits (3372014dc734ec276febf250012e7336db2dc078)

Author SHA1 Message Date
Mitchell Hashimoto cfa9cef2bf packer/plugin: Set killed in the kill clients method
13 years ago
Mitchell Hashimoto f68e00085b packer/plugin: Killed bool to avoid panics when killing clients
13 years ago
Mitchell Hashimoto de1e94eb90 packer/plugin: set TCP keep-alive on connection
13 years ago
Mitchell Hashimoto 00338a0b85 packer/plugin: trim whitespace on right of log data from plugin
13 years ago
Mitchell Hashimoto ae28778caf packer/plugin: flush os.Stderr whenever a plugin ends
13 years ago
Mitchell Hashimoto 69a5e83f47 packer/plugin: use chan struct{} for condition variable behavior
13 years ago
Mitchell Hashimoto 0dd4a4d83f packer/plugin: clean up stderr
13 years ago
Mitchell Hashimoto 52dbb3c423 packer/plugin: more stable stderr logging
13 years ago
Mitchell Hashimoto 9289df6d35 packer/plugin: connect stdin to parent stdin
13 years ago
Mitchell Hashimoto 807896d63b packer: PostProcessor can take multiple configs
13 years ago
Mitchell Hashimoto f78cbb45a6 packer: PostProcessor API change so they can keep artifacts [GH-55]
13 years ago
Mitchell Hashimoto 7d32b7f4b3 packer/plugin: Println should be Printf
13 years ago
Mitchell Hashimoto 62cfa9983d packer/plugin: Assume any listen error is a port collision [GH-58]
13 years ago
Mitchell Hashimoto 09862d9c2b packer/plugin: Bind to 127.0.0.1. Somehow fixes [GH-37]
13 years ago
Mitchell Hashimoto 2f84cd6ce7 packer/plugin: Extra logging statements
13 years ago
Mitchell Hashimoto e5a7fc6b0a packer: Provisioner/Hook can have errors returned
13 years ago
Mitchell Hashimoto 35e75ba0d2 packer/plugin: No need for a panic when plugins error
13 years ago
Mitchell Hashimoto df72fd0b0e packer/plugin: Require the magic cookie to be present to run
13 years ago
Mitchell Hashimoto 76ab870924 packer: PostProcessor takes a UI [GH-20]
13 years ago
Mitchell Hashimoto 9b406a9010 packer/plugin: Support PostProcessor
13 years ago
Mitchell Hashimoto 540fac6454 Allow post-processors in the core configuration
13 years ago
Mitchell Hashimoto 9f5a247511 packer: Builders can take multiple configs
13 years ago
Mitchell Hashimoto 521b59a6fa Make everything support the new builder interface
13 years ago
Mitchell Hashimoto 417f7e7f47 fmt
13 years ago
Mitchell Hashimoto de14dffd36 packer/plugin: Set the RPC port range to the plugin port range
13 years ago
Mitchell Hashimoto 9162819daf packer/plugin: Avoid lexical scoping issues with cleaning up clients
13 years ago
Mitchell Hashimoto e904705a49 packer uses the new plugin client API
13 years ago
Mitchell Hashimoto 88d508893d packer/plugin: client to Client so it can be used outside
13 years ago
Mitchell Hashimoto 7fe98e50fe packer/plugin: Refactor to get interfaces from Client
13 years ago
Mitchell Hashimoto 250cb0106b packer/plugin: Only allow client start once, lock
13 years ago
Mitchell Hashimoto fb2ffde29e packer/plugin: Refactor the client for the API to be more uniform
13 years ago
Mitchell Hashimoto 62309cb6de Build/Builder take a Cache object now
13 years ago
Mitchell Hashimoto 0a6d8ed75a packer: Add errors to Prepare
13 years ago
Mitchell Hashimoto 6b87c42ee6 packer: Change provisioner interface to take array of configs
13 years ago
Mitchell Hashimoto 34f4086963 packer/plugin: Preserve parent ENV when executing client
13 years ago
Mitchell Hashimoto dd4fb1d62a packer/plugin: Explicitly set GOMAXPROCS to # of cpus
13 years ago
Mitchell Hashimoto 12a9362f0a packer/plugin: Swallow interrupts in plugins
13 years ago
Mitchell Hashimoto 0ba80c88e8 packer/plugin: Implement Builder.Cancel
13 years ago
Mitchell Hashimoto 079d6f4d43 packer: Introduce Cancel() method to Builder
13 years ago
Mitchell Hashimoto bbafcfa938 packer, etc: added Help method to Command interface
13 years ago
Mitchell Hashimoto e629eef97a packer/plugin: Start testing the client
13 years ago
Mitchell Hashimoto 84891701bd go fmt
13 years ago
Mitchell Hashimoto 37372bac93 packer/plugin: Support provisioners
13 years ago
Mitchell Hashimoto e9618b0d07 packer/plugin: Properly supports Artifacts
13 years ago
Mitchell Hashimoto 15f215d04f go fmt
13 years ago
Mitchell Hashimoto 7475ee8377 packer: Add Communicator to Hook arguments
13 years ago
Mitchell Hashimoto cb1e0cbabf packer/plugin: Support hooks
13 years ago
Mitchell Hashimoto d926b98708 Update all packer/rpc, packer/plugin, builders for new builder API
13 years ago
Mitchell Hashimoto 44bd56c3a8 go fmt
13 years ago
Mitchell Hashimoto 077f15bdfb packer/plugin: Docs
13 years ago
Mitchell Hashimoto c580faa1a5 packer/rpc: error interface wrapper to RPC errors around
13 years ago
Mitchell Hashimoto 6d4136c5ab packer/plugin: Add plugin path to the log messages
13 years ago
Mitchell Hashimoto 587d359887 packer: Builder.Prepare can return an error
13 years ago
Mitchell Hashimoto c164b4c23c packer/plugin: Actually try more ports for plugins
13 years ago
Mitchell Hashimoto cce59af2e8 Support builders in config, packer/rpc, packer/plugin
13 years ago
Mitchell Hashimoto c5e83a4b15 packer/plugin: Client.Kill should only kill process if it is running
13 years ago
Mitchell Hashimoto 7dfeda350a packer/plugin: Properly log the max port
13 years ago
Mitchell Hashimoto abb51ebb35 packer/plugin: Don't wrap bytesBuffer in bufio, fixes GH-10
13 years ago
Mitchell Hashimoto 286f0aa91c More logging, some tweaks to the format
13 years ago
Mitchell Hashimoto 26a998f721 packer/plugin: Managed clients for automatic cleanup
13 years ago
Mitchell Hashimoto c8079a4290 packer/plugin: client kill waits for logging to complete
13 years ago
Mitchell Hashimoto e1785e424e packer/plugin: client to encapsulate logic for starting plugins
13 years ago
Mitchell Hashimoto 4d9b5fa86d packer/plugin: Better command logging, but not good enough yet
13 years ago
Mitchell Hashimoto 8a32494e3f Start working on logging across the board
13 years ago
Mitchell Hashimoto fbc2013b8c packer/plugin: Documentation
13 years ago
Mitchell Hashimoto 70d378b936 packer/plugin: Better command cleanup
13 years ago
Mitchell Hashimoto 68a024b59a packer/plugin: Make sure subprocess properly dies if error
13 years ago
Mitchell Hashimoto 2ff1fabbf9 packer/plugin: timeout when starting a plugin
13 years ago
Mitchell Hashimoto c9c294f136 packer/plugin: More robust command exit detection + tests
13 years ago
Mitchell Hashimoto 9219a19f61 packer/plugin: Better error handling around command exit cases
13 years ago
Mitchell Hashimoto ff23b67929 packer/plugin: error if command can't start
13 years ago
Mitchell Hashimoto 04563764a0 `packer build` now communicates through RPC!
13 years ago
Mitchell Hashimoto e9278cc0bd packer/plugin: Randomly generate port to run on
13 years ago
Mitchell Hashimoto 0cc3a5f918 packer/plugin: Much more robust subprocess starting
13 years ago
Mitchell Hashimoto 3370c55e2c Start packer/plugin. Big WiP
13 years ago