0731b44888
Improve formatting with 'go fmt' as stated in CONTRIBUTING.md
...
As 'go fmt' doesn't support verifying files in multiple directories,
it's probably a good idea to run it on all '*.go' files from time to
time with something like this:
find . -name "*.go" | xargs dirname | sort -u | xargs -n 1 echo go fmt
Upstream-commit: d80b50d4b4759665b93e713b99239aba9893416e
Component: engine
2013-08-27 10:05:25 +02:00
c7a4c41750
Merge pull request #1525 from griff/1503-fix
...
Don't read from stdout when only attached to stdin
Upstream-commit: f925edd12de4f56bf088175257b26e6234cd0c80
Component: engine
2013-08-22 13:43:05 -07:00
35c6bf7330
Add an option to set the working directory.
...
This makes it possible to simply wrap a command inside a container. This makes
it easier to use a container as an unified build environment.
Examples:
~/workspace/docker
$ docker run -v `pwd`:`pwd` -w `pwd` -i -t ubuntu ls
AUTHORS Makefile archive.go changes.go docker
[...]
docker run -v `pwd`:`pwd` -w `pwd` -i -t ubuntu pwd
/home/marco/workspace/docker
Upstream-commit: 687d27ab575778196ea646b6d3fa61b6c8e512b0
Component: engine
2013-08-18 19:34:01 +02:00
08c2360512
Don't read from stdout in hijack unless attached. Fixes #1503
...
Upstream-commit: c7cda86e847d541efbc4fc8ce834d924b2b98bf1
Component: engine
2013-08-15 02:54:06 +02:00
efc4a51c0c
Fixed typos
...
Upstream-commit: 9b2a5964fc2067014f24e26bd2f99873751ebdc3
Component: engine
2013-08-12 18:53:06 +01:00
7907b8ec17
Merge pull request #1277 from dotcloud/add_commands_unit_tests
...
* Tests: Reimplement old Commands unit tests in order to insure behavior
Upstream-commit: 6ae3305040346083c4b17997e706e7b364c33910
Component: engine
2013-07-24 15:24:51 -07:00
600442316a
Reimplement old Commands unit tests in order to insure behavior
...
Upstream-commit: bc823acc255a786b00a7b2759b67fd7b3256fce3
Component: engine
2013-07-23 17:27:49 -07:00
211bbde153
Add tests for the api
...
Upstream-commit: ed7a4236b32f3f711c183dff8b70fbef17bae2d7
Component: engine
2013-07-23 15:42:34 +00:00
80066854b8
store both logs in a same file, as JSON
...
Upstream-commit: 599f85d4e4362f24dc2850c71a689671122c456b
Component: engine
2013-07-15 16:17:58 +00:00
b91cb2c854
Don't leave broken, commented out tests lying around.
...
Upstream-commit: 2ac11419806ce39c57d5caf6b41a66e5ddf45bc8
Component: engine
2013-07-11 17:58:45 -07:00
44da1d38e6
Merge pull request #1049 from dotcloud/1040_ignore_stderr_tests-fix
...
- Tests: Ignore stderr while doing tests
Upstream-commit: ada0e1fb0817d2e609b46c260ef6ab0cfa510379
Component: engine
2013-07-09 10:32:24 -07:00
1c71d0a65e
Implement several golint suggestions, including:
...
* Removing type declarations where they're inferred
* Changing Url -> URL, Id -> ID in names
* Fixing snake-case names
Upstream-commit: 19121c16d9514b391ce8f15aeff3c47c1ea5a841
Component: engine
2013-07-03 14:36:04 -07:00
65b2fd1698
Ignore stderr while doing tests
...
Upstream-commit: 800d9006883228365a375800254871397cb1a011
Component: engine
2013-06-27 15:25:31 -07:00
51f8e07a39
Implement regression test for stdin attach
...
Upstream-commit: 5190f7f33a9e36f1f5991a385f4db198e9f1b3a6
Component: engine
2013-06-24 18:36:04 -07:00
40e51bbd8c
Make DockerCli use its own stdin/out/err instead of the os.Std*
...
Upstream-commit: a749fb21309b147a1bb9da0838f591ba58f6d169
Component: engine
2013-06-24 18:27:57 -07:00
3980cc1280
Merge branch 'master' of github.com:dotcloud/docker into 471-cpu-limit
...
Upstream-commit: 6f3e868a7b8f239334d06b2385b776ce7ae5614f
Component: engine
2013-05-10 14:44:50 -07:00
e4c6fe6d42
Mock Hijack and Implement Unit test for Attach
...
Upstream-commit: 15ae314cbb8ede09a2d2c9e70c6a0d7d87817b64
Component: engine
2013-05-09 21:55:08 -07:00
65d10241c4
in the tests, use a non-default value for cpu.shares
...
Upstream-commit: af9f559f2ebd6438f37fef890f2a25eca590f252
Component: engine
2013-05-07 11:44:24 -07:00
443030ccf1
implement "-c" option to allocate a number of CPU shares to a container
...
Upstream-commit: efd9becb78c82ddef07efb7e76e0100d7a712281
Component: engine
2013-05-07 11:16:30 -07:00
44910e43b1
update to master
...
Upstream-commit: 10c0e990371e065d4fc1c9b680f03a46e5bacc5e
Component: engine
2013-05-07 19:23:50 +02:00
1fe09c7f12
Merge pull request #497 from justone/dot-graph-images
...
+ images: output graph of images to dot (graphviz)
Upstream-commit: 8472a27e80849318161ed7d8f30a8b431b1571a8
Component: engine
2013-05-06 17:48:07 -07:00
7b2bb0c965
Update the unit tests to reflect the new API
...
Upstream-commit: ff95f2b0ecf54fdfeffa1aa008e22cb5c7ec59d6
Component: engine
2013-05-06 16:00:30 -07:00
3a6a7097c6
split api and server. run return exit code. import, pull and commit uses the smae endpoint. non zero status code on failure
...
Upstream-commit: 04cd20fa627635d30ea315d0d4e281e10e8d293c
Component: engine
2013-05-06 11:31:22 +02:00
e5252f9360
add tests for 'images' subcommand
...
Upstream-commit: 3dba4022adbd1f21a8b2ec4a6035cacfe143b380
Component: engine
2013-05-03 21:12:43 -07:00
27ad61c153
Wait for the container to finish in TestAttachDisconnect before destroying it
...
Upstream-commit: a22c78523f20c44e90e7a3adbd01a5560ed4f6ae
Component: engine
2013-04-23 11:09:48 -07:00
e2e7fde654
Fix race within TestRunDisconnectTty
...
Upstream-commit: acb546cd1bf45a248f4bb51637c795ef63feb6cb
Component: engine
2013-04-22 11:16:32 -07:00
00b1b1ebe5
update TestRunDisconnectTty to reflect the correct behavior of CmdRun
...
Upstream-commit: cc5a044a8c140e32868bb0f312f3780161515f0b
Component: engine
2013-04-19 17:51:41 -07:00
34381c942f
Add unit test for hanging kill + fix other tests behaviour
...
Upstream-commit: bb22cd492efdc67855bbcf8ab4a669e45ea9ee8e
Component: engine
2013-04-11 16:21:19 -07:00
555829afe7
Update the unit test to reflect the new CmdRun behaviour in tty mode
...
Upstream-commit: d063d52cce9892c777722b30923d9fb1f1385fe8
Component: engine
2013-04-09 08:18:36 -07:00
91c3817cdd
Fix run disconnect behavious in tty mode + add unit test to enforce it
...
Upstream-commit: 99b5bec0692ea9ec8a397926df9dd545fb264ac9
Component: engine
2013-04-05 19:02:35 -07:00
6fa32df65e
Update the tests according to the "optional raw mode" changes
...
Upstream-commit: e9a68801ba4c47581d7741989700a35521c389c4
Component: engine
2013-04-08 16:07:12 -07:00
ab2b1cf277
Reenable CmdRunAttachStdin and CmdRunHostname now using the DockConn interface
...
Upstream-commit: bdf05d8368f2d158ba051dbefeb07bc717a93774
Component: engine
2013-04-08 15:58:09 -07:00
7e2a370b5c
Edit the tests for them to use the new command API. Disable TestRunHostname and TestAttachStdin.
...
Upstream-commit: 80f6b4587b6ebaed30747d17b69af4d11d6389ab
Component: engine
2013-04-08 15:58:09 -07:00
20aa05fbaa
Add a stdincloser to container.Attach in order to close the client connection when needed
...
Upstream-commit: 6882c78ce447b468262b53aef2ac0577151ea98c
Component: engine
2013-04-02 12:18:20 -07:00
44017879ad
Add a TestRunExit, make sure cmdRun returns after process dies
...
Upstream-commit: 43484e8b502be1dbf2e587524ae8ef036181b186
Component: engine
2013-04-02 09:22:30 -07:00
36ddc7dcc6
Merged attachStdin
...
Upstream-commit: 15c3096e8942ac31eb5611b41d08fcc31061be65
Component: engine
2013-04-02 20:46:32 -07:00
57e119bf13
TestRunHostname checks that 'docker run -h' correctly sets a custom hostname
...
Upstream-commit: b1fa26bb76501c53f68de466538da1eece57d94d
Component: engine
2013-04-02 19:00:05 -07:00
506ecddd21
Add test for attaching only stdin at run with 'docker run -i -a=stdin'
...
Upstream-commit: c77063afcd00f97c6922c41e509090dd4f8c2b95
Component: engine
2013-04-02 18:05:19 -07:00
5597e432af
'docker run' in attached mode no longer waits for the process to exit. Take this into account in the tests.
...
Upstream-commit: 2db358146f8bc0f63d840c8e0227bcbe7a8e3063
Component: engine
2013-04-02 11:07:49 -07:00
8a9e7f42f0
When simulating disconnects in the tests, make sure that the command returns - but don't check for a specific return value
...
Upstream-commit: 1cc1cb099ed8fb0e4fc47debe38a33d17e211a65
Component: engine
2013-04-02 11:06:42 -07:00
2e91f0bb47
Add unit test for CmdAttach
...
Upstream-commit: ad1e8a9b0f0e57327d71827c1161c21f48910e42
Component: engine
2013-03-31 21:48:18 -07:00
735e80ee9b
Change the commands unit tests in order to reflect the proper behaviour of CmdRun
...
Upstream-commit: cfeed391d76105e4131a021d2005966d01eb4e68
Component: engine
2013-03-31 20:52:35 -07:00
bd2e319579
Temporarily disable a broken test (waiting for @creack to fix it), and silence a warning which pollutes unit tests but is complicated to fix
...
Upstream-commit: a52a28b60946463e8208b8cd5d737ba79f23a8b8
Component: engine
2013-03-31 22:05:14 -07:00
80191382f5
Add unit test for the #125 scenario. Reattach after client disconnect on stdin allocated container
...
Upstream-commit: 8cceafc8348f8e9de71b09274458848cd8e8de6d
Component: engine
2013-03-30 06:55:47 -07:00