Commit Graph

2876 Commits

Author SHA1 Message Date
shin- 477831334c Merge branch 'master' of git://github.com/dotcloud/docker-py 2014-01-16 20:26:06 +01:00
shin- 33f5ac57d8 Removed data argument in import_image (unused?) 2014-01-16 20:25:26 +01:00
shin- 8a5cd6ae65 Merge branch 'feature/image-import' of github.com:tarnfeld/docker-py into tarnfeld-feature/image-import 2014-01-16 20:22:33 +01:00
Joffrey F 4bf75ded43 Merge pull request #119 from ureyes84/master
Updated port function
2014-01-16 11:19:34 -08:00
Joffrey F acbd0661fd Merge pull request #143 from mpetazzoni/tcp-default-proto
Default to /tcp for port definitions in create_container()
2014-01-16 11:16:14 -08:00
Maxime Petazzoni dad95ba679 Default to /tcp for port definitions in create_container()
Fixes #141.

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2014-01-16 10:23:02 -08:00
Maxime Petazzoni 77edd8b601 Merge pull request #138 from aanand/container-output-without-logs
container_output() method for streaming the output without logs=1
2014-01-16 09:05:46 -08:00
Maxime Petazzoni 7aba0126cb Merge pull request #142 from aanand/use-relative-imports
Use relative imports
2014-01-16 09:05:14 -08:00
Aanand Prasad cea085f046 Use relative imports 2014-01-16 13:28:00 +00:00
Aanand Prasad 3cb6482f8a attach() method now parses multiplexing frames
The previous version of `attach` didn't look like it was doing
anything useful, as it just yielded 4096-byte chunks of raw /attach
output, without doing any frame parsing.

Now `attach` is identical to `logs`, except that by default it
doesn't show historical output. `logs` is now a wrapper around
`attach` which sets `logs=True`, and its behaviour is unchanged.
2014-01-16 10:56:17 +00:00
Maxime Petazzoni d73901a7ed Merge pull request #140 from aanand/sensible-url-handling
Sensible url handling
2014-01-14 10:13:09 -08:00
Aanand Prasad 688554998a Accept base_url of None
This makes it very simple to get identical behaviour to the CLI:

    client = Client(os.environ.get('DOCKER_HOST'))
2014-01-14 17:19:39 +00:00
Joffrey F ebddf043e7 Merge pull request #139 from aanand/no-timeout-on-build
Configurable timeout on build(), defaults to None
2014-01-14 09:16:40 -08:00
Aanand Prasad 96932fc1cb Handle tcp:// URLs
This means docker-py will do the Right Thing if the base url is set
using the new `DOCKER_HOST` environment variable, for example.
(http://docs.docker.io/en/latest/commandline/cli/)
2014-01-14 17:14:27 +00:00
Aanand Prasad dac4211a85 Break down _post() parameters one-per-line in build() 2014-01-14 15:25:29 +00:00
Aanand Prasad 732b4378ae Configurable timeout on build(), defaults to None
Many commands used in Dockerfiles hang for an extended period of time
without producing any output, which will result in a socket timeout.
Accordingly, it makes sense for build() to specify no timeout by
default.
2014-01-14 13:58:51 +00:00
Joffrey F 2ac5cca84d Merge pull request #120 from mpetazzoni/improve-auth
Rework auth config loading and use of auth data for login/pull/push
2014-01-09 11:00:55 -08:00
Maxime Petazzoni 32ad01e110 Rework auth config loading and use of auth data for login/pull/push
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2014-01-07 15:30:50 -08:00
Maxime Petazzoni 0bce148062 Merge pull request #134 from ticosax/improve-trove-classification
Declare explicitly supported python versions
2014-01-07 13:37:02 -08:00
Nicolas Delaby 700fbd3df7 Declare explicitly supported python versions 2014-01-07 15:08:32 +01:00
Maxime Petazzoni 2891c63870 Merge pull request #133 from namin/network-disabled-opt
Option to disable network when creating container.
2014-01-05 22:25:51 -08:00
Nada Amin d1427d38be Option to disable network when creating container. 2014-01-03 16:20:45 +00:00
Maxime Petazzoni 86a504752c Merge pull request #132 from DevTable/master
A socket that is wrapped in a file-like object must be set to blocking.
2014-01-02 13:50:52 -08:00
Jake Moshenko 294b42c6cd A socket that is wrapped in a file-like object must be set to blocking. 2013-12-31 14:27:05 -05:00
Joffrey F 6f2ca81e31 Merge pull request #131 from antigluk/master
"six" dependency fixed to greater-or-equal
2013-12-30 08:32:06 -08:00
Roman Rader 9787c004e5 "six" dependency fixed to greater-or-equal 2013-12-30 17:49:43 +02:00
Maxime Petazzoni ef009e114a Style fixes for flake8
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-24 10:07:25 -08:00
Maxime Petazzoni 016a4d961c Merge pull request #128 from slon/master
Fix infinite loop in Client.logs(stream=True) caused by connection close...
2013-12-24 10:04:32 -08:00
Fedor Korotkiy 09f95768f3 Fix infinite loop in Client.logs(stream=True) caused by connection close. 2013-12-24 12:01:16 +00:00
Maxime Petazzoni 20a2c23bc2 Merge pull request #127 from daniellawrence/patch-1
Updated using volumes (binds)
2013-12-22 18:18:50 -08:00
Daniel 761a97546f Updated using volumes (binds)
bindings of volumes is called 'binds' not 'bindings'

https://github.com/dotcloud/docker-py/blob/master/docker/client.py#L640
2013-12-23 10:28:43 +11:00
Maxime Petazzoni fd38b0e7e7 Merge pull request #126 from eltimn/patch-1
Updated function signatures in README
2013-12-22 11:10:16 -08:00
Tim Nelson 0eaafe2a9f Updated function signatures in README 2013-12-22 03:20:16 -06:00
Joffrey F 67e50b4f9f Merge pull request #118 from mpetazzoni/master
README.md formatting changes
2013-12-17 06:37:18 -08:00
Joffrey F 792fff6b47 Merge pull request #122 from mpetazzoni/base-url-sanitize
Remove trailing slashes in base_url
2013-12-17 05:55:18 -08:00
Joffrey F 98c5a85ac4 Merge pull request #123 from mpetazzoni/fix-log-stream-recvall
Fix stream receive by correctly reading all required bytes from the socket
2013-12-17 05:53:41 -08:00
Maxime Petazzoni 1fe3c041c4 Fix stream receive by correctly reading all required bytes from the socket
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-16 15:54:19 -08:00
Maxime Petazzoni 9b4582989b Remove trailing slashes in base_url. Fixes #108
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-16 15:30:44 -08:00
Ulises Reyes d8e0f5a66f Improves code style 2013-12-15 20:42:58 -05:00
Ulises Reyes 844e41088e Refactored test. It now makes 2 calls to port 2013-12-15 02:11:02 -05:00
Ulises Reyes daa3a1e2ef Shortened lines 2013-12-14 22:28:45 -05:00
Ulises Reyes a7c1449757 Improved assertions in the port test 2013-12-14 22:24:19 -05:00
Ulises Reyes f5924c3863 Updated the port function in order to parse the new NetworkSettings Port dict (fixes #88) 2013-12-14 22:00:08 -05:00
Maxime Petazzoni 0e202f9bb9 README.md formatting changes
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-13 13:55:15 -08:00
shin- 5c928dcab5 Fixed start_container_with_port_binds test 2013-12-13 15:47:24 +01:00
shin- 64781888e0 Merge branch 'privilege' of github.com:yukw777/docker-py into yukw777-privilege
Conflicts:
	README.md
	tests/test.py
2013-12-13 15:46:54 +01:00
shin- 9bbbb5d3b4 Fixed indentation 2013-12-13 15:27:00 +01:00
Maxime Petazzoni 4bc4ee3cf0 Log streaming and correct decoding of multiplexed log streams
Implement log streaming with the stream parameter on logs(), returning a
generator of log lines based on the selected streams (stdout/stderr).
Also correctly decode the multiplexed log streams (current version was
buggy).

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-12 22:26:17 -08:00
shin- 5e68ed1df8 Updated changelog, bumped version in setup.py 2013-12-10 19:53:58 +01:00
Joffrey F 08d6de7ca1 Merge pull request #115 from dotcloud/port_volumes
Simplified port bindings and volume mapping
2013-12-09 09:10:26 -08:00