Commit Graph

740 Commits

Author SHA1 Message Date
Solomon Hykes f13fe3e23b Show shorthand container IDs for convenience. Shorthand IDs (or any non-conflicting prefix) can be used to lookup containers 2013-03-31 02:02:01 -07:00
Solomon Hykes 3e3a53e607 Merge remote-tracking branch 'origin/125-reattach_attached_run_command-fix' 2013-03-31 00:20:31 -07:00
Guillaume J. Charmes adcd5a9ffb Add debug infos in CmdInfo to know the amount of fds and goroutines in use 2013-03-30 10:33:10 -07:00
Guillaume J. Charmes d12f9357d6 Make sure to close all pipes when detaching client (#228) 2013-03-30 09:47:09 -07:00
Guillaume J. Charmes 2287b5e204 Close the containers stdin when the process dies 2013-03-30 09:08:53 -07:00
Guillaume J. Charmes a5ec50d44b Fix a scope issue preventing the close of slave stdin pty (#228) 2013-03-30 09:07:54 -07:00
Guillaume J. Charmes 69fb3b6d4d Store the master ptys in order to close them when the process dies (#228) 2013-03-30 09:05:53 -07:00
Guillaume J. Charmes 416db4d7ef Merge pull request #269 from cespare/gofmt-1
Gofmt.
2013-03-30 12:46:47 -07:00
Guillaume J. Charmes 69eb25ebe3 Add unit test for the #125 scenario. Reattach after client disconnect on stdin allocated container 2013-03-30 06:55:47 -07:00
Caleb Spare 93805d1edf Gofmt. 2013-03-29 23:58:30 -07:00
Solomon Hykes 91b313266e Merge remote-tracking branch 'robryk/cmdstream-deadlock' 2013-03-29 23:43:02 -07:00
Solomon Hykes 9afdd23e81 Merge remote-tracking branch 'origin/improve_container_tests' 2013-03-29 23:41:09 -07:00
Robert Obryk 96ae0f148b Added a timeout to TestCmdStreamLargeStderr. 2013-03-29 22:36:36 +01:00
Solomon Hykes f55beac87a Merge remote-tracking branch 'robryk/bufreader-race' 2013-03-29 13:50:33 -07:00
Solomon Hykes af9181358f Merge pull request #250 from metachord/master
Remove unnecessary path parts
2013-03-29 13:42:23 -07:00
Solomon Hykes da5c3f7fc7 FIXME: implement a timeout in TestCmdStreamLArgStderr to avoid blocking the whole test suite when it fails 2013-03-29 13:37:52 -07:00
Solomon Hykes 753bcf2f7c Comment CmdStream a little bit to facilitate future fixes and contributions 2013-03-29 13:26:02 -07:00
Solomon Hykes aeafdc7c24 Merge remote-tracking branch 'robryk/cmdstream-deadlock' 2013-03-29 13:20:17 -07:00
Solomon Hykes e435bde097 Comment to explain CmdStream 2013-03-29 13:18:59 -07:00
Solomon Hykes bccf834d4f Merged Ctrl-C interception by @creack 2013-03-29 13:12:04 -07:00
Guillaume J. Charmes 58108a2d4f Add unit test for multiple attach / restart 2013-03-29 10:56:49 -07:00
Guillaume J. Charmes 14be284a91 Do not close the stdin of the process when the client deattaches himslef 2013-03-29 09:42:42 -07:00
Guillaume J. Charmes d2ce0225df Fix #108, reattach now works properly 2013-03-29 09:31:47 -07:00
Solomon Hykes ec819da2d3 Merge pull request #265 from dotcloud/formating_debug_harmonize
Formating debug harmonize
2013-03-29 21:30:43 -07:00
Solomon Hykes 72bef8fb81 Merge pull request #266 from dotcloud/do_not_log_stopped_container
Do not log non-running containers
2013-03-29 21:29:19 -07:00
Solomon Hykes 748e5ff2a1 Add comments in graph.go 2013-03-29 21:13:59 -07:00
Solomon Hykes 84a9010c8a Merge remote-tracking branch 'origin/264-remove_cmdAttach_option' 2013-03-29 20:30:43 -07:00
Solomon Hykes 9954bb23de Merge remote-tracking branch 'lopter/master' 2013-03-29 20:17:33 -07:00
Louis Opter a8433493ec Fix output in the login command
It was broken because the terminal is in raw mode.

This changeset adds code in the login commmand to do a little bit of
interpretation on the user input (something usually done by the terminal
emulator itself).
2013-03-29 11:39:41 -07:00
Guillaume J. Charmes e7df03cd90 Do not log non-running containers 2013-03-29 08:46:06 -07:00
Guillaume J. Charmes 968e664c99 Remove unused variable from container struct 2013-03-29 08:41:48 -07:00
Guillaume J. Charmes 970e82aaf3 Add some error checking in container monitor 2013-03-29 08:29:59 -07:00
Guillaume J. Charmes e92d1cdee0 Harmonize the error management. Use fmt.Errorf instead of errors.New 2013-03-29 08:19:42 -07:00
Guillaume J. Charmes 0c1ef6e0ab Add debug infos 2013-03-29 08:18:43 -07:00
Guillaume J. Charmes f3a81ba9f3 Remove the options of CmdAttach 2013-03-29 07:49:26 -07:00
Guillaume J. Charmes 1df79124bc Improve the containers unit tests (add error checking) 2013-03-29 07:44:58 -07:00
Robert Obryk 7b99171c2f Fix a deadlock in CmdStream.
As per FIXME, CmdStream could have deadlocked if a command printed
enough on stderr. This commit fixes that, but still keeps all of
the stderr output in memory.
2013-03-29 12:55:48 +01:00
Robert Obryk d87fb5222b Fix a race condition in bufReader.
The race condition cen be detected by running existing bufReader tests
with Go's race detector.
2013-03-29 11:00:50 +01:00
Maxim Treskin cf1721909d Remove unnecessary part of paths to lxc executables 2013-03-29 12:07:25 +07:00
Solomon Hykes 839c9c035a Fixed leftover from docs merge. Thanks @cespare for spotting! 2013-03-28 19:18:03 -07:00
Solomon Hykes f49077b37f Merging dhrp/docs 2013-03-28 19:12:58 -07:00
Thatcher Peskens 66e944a76a Fixed some links in gettingstarted 2013-03-28 19:03:06 -07:00
Solomon Hykes 27e0ba5840 Merge pull request #241 from titanous/cleanup-deps
Remove unneeded sqlite deps from puppet and debian control
2013-03-28 18:45:44 -07:00
Solomon Hykes 9c17f0b7d7 Merge pull request #244 from dotcloud/docs-julien
Docs: Changed the url of the LEGO img to point to the one with copyright
2013-03-28 18:45:20 -07:00
Solomon Hykes 72463bf671 Test that iptables() looks for iptables in the PATH 2013-03-28 18:44:47 -07:00
Solomon Hykes d41b9dc441 Merge remote-tracking branch 'shawnsi/iptables-wrapper' 2013-03-28 18:40:02 -07:00
Solomon Hykes 28943dc665 Merge remote-tracking branch 'titanous/camelize' 2013-03-28 18:23:59 -07:00
Solomon Hykes b6b37c1c14 Merge pull request #246 from titanous/update-authors
Update AUTHORS and add .mailmap
2013-03-28 18:19:05 -07:00
Jonathan Rudenberg a54691a1aa Update AUTHORS and add .mailmap 2013-03-28 20:53:54 -04:00
Jonathan Rudenberg 6c0ec2f878 Camelize some snake_case variable names 2013-03-28 20:12:23 -04:00