Commit Graph

98 Commits

Author SHA1 Message Date
Raphaël De Giusti 579201bcf7 Fixed python26 shlex split of unicode strings.
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> cmd = u"/bin/bash echo 'Hello World'"
>>> shlex.split(cmd)
['/\x00\x00\x00b\x00\x00\x00i\x00\x00\x00n\x00\x00\x00/\x00\x00\x00b\x00\x00\x00a\x00\x00\x00s\x00\x00\x00h\x00\x00\x00',
'\x00\x00\x00e\x00\x00\x00c\x00\x00\x00h\x00\x00\x00o\x00\x00\x00',
'\x00\x00\x00\x00\x00\x00H\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x00o\x00\x00\x00
\x00\x00\x00W\x00\x00\x00o\x00\x00\x00r\x00\x00\x00l\x00\x00\x00d\x00\x00\x00\x00\x00\x00']
>>> shlex.split(str(cmd))
['/bin/bash', 'echo', 'Hello World']
2013-08-14 08:27:42 +02:00
shin- c31ce82d2c Bumped to 0.1.4 2013-08-13 20:05:13 +02:00
Joffrey F f7b80659c6 Merge pull request #28 from dotcloud/17-add-unix-socket
27 - add support for unix sockets, the default configuration for docker
2013-08-13 10:48:02 -07:00
Nick Stinemates 2c27d9bba7 made unix sockets the default configuration and usage for the client library to reflect the changes made in 0.5.2. this change uses the hook in the requests Sessions object to associate unix:// paths with a set of custom pools and connections. the goal was to patch with as much reuse and interface compatibility to make the changes seamless to the end-user and so as to not introduce regressions on existing functionality. 2013-08-13 17:35:03 +00:00
Jérôme Petazzoni ecb1b4cf10 Add Apache 2.0 License 2013-08-07 11:39:59 -07:00
shin- 1b0af1d196 Bumped version to 0.1.3 2013-08-06 20:00:44 +02:00
shin- 17a6994e43 Docker client now tries to load the auth config. This is necessary to use the push command if API version is >1.0 2013-08-06 19:57:20 +02:00
shin- 4f7872da87 Fixed tests 2013-07-25 20:18:38 +02:00
shin- ebaa5efe72 Bumped version 2013-07-25 18:32:13 +02:00
shin- a12432fba2 Added 'quiet' param to Client.build 2013-07-25 18:27:44 +02:00
shin- aaa4b41007 Bumped version 2013-07-23 19:17:42 +02:00
Joffrey F ad311e0fd3 Merge pull request #22 from keeb/fix-portspec-gh21
fix gh#21 - 0.5.0 portspec changes break client.port() resulting in KeyE...
2013-07-23 09:32:25 -07:00
Nick Stinemates 177409968f fix gh#21 - 0.5.0 portspec changes break client.port() resulting in KeyError 2013-07-19 22:53:38 +00:00
shin- b82ef9cae7 Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-07-17 17:30:17 +02:00
shin- c3a488f9c0 Removed tar contents printing in Client._tar 2013-07-17 17:29:54 +02:00
Joffrey F 9a15b6597c README.md: Client class is in the docker package 2013-07-16 18:38:51 +02:00
shin- 79a6889355 Bumped version 2013-07-16 18:32:11 +02:00
shin- 50b391e8af Updated README 2013-07-16 18:09:14 +02:00
shin- 5364ce7425 Updated ChangeLog 2013-07-16 17:59:07 +02:00
shin- 08698d69e2 Added version param in constructor to simplify use of different versions of the Docker API 2013-07-16 17:47:08 +02:00
shin- 1c618561f5 Clarify post_json method being internal (2) 2013-07-16 17:35:43 +02:00
shin- b252547b9c Clarify post_json method being internal 2013-07-16 17:34:48 +02:00
shin- 7e415dd234 Fixing failed merge 2013-07-15 19:04:24 +02:00
shin- 4488be3678 Fixed tests 2013-07-15 19:02:48 +02:00
shin- 43b3b0996f Replaced build with build_context ; added support for in-memory dockerfiles 2013-07-15 18:57:09 +02:00
shin- 4a3350b398 Switching to server-side build system 2013-07-15 18:57:09 +02:00
Joffrey F 3d05cda956 Merge pull request #19 from robbyt/patch-1
pip needs "=="
2013-07-15 06:31:37 -07:00
Rob Terhaar d3edaa7a14 pip needs "==" 2013-07-13 19:42:13 -04:00
Ken Cochrane 17c328afa5 Merge pull request #18 from mneilsen/master
Minor fixes: requirements.txt, setuptools test support
2013-07-13 05:00:38 -07:00
Mike Neilsen b981f9a6de Create tests module for setuptools test support
Run test suite via

  python setup.py test

Signed-off-by: Mike Neilsen <mneilsen@acm.org>
2013-07-13 01:07:04 -05:00
Mike Neilsen 5bf0625a7a Add six==1.3.0 to requirements.txt
Signed-off-by: Mike Neilsen <mneilsen@acm.org>
2013-07-13 01:04:39 -05:00
Joffrey F 2ece148452 Fixed: missing linebreak 2013-07-12 15:47:37 +02:00
Joffrey F eb62af9dab Merge pull request #16 from globocom/bind-mounts
Add support for bind mounts
2013-07-12 06:45:17 -07:00
Enrico cf47df1b3e Removed duplicated import. 2013-07-11 18:05:19 -03:00
Enrico be5347533d Fixed whitespaces on readme and removed makefile references. 2013-07-11 17:54:36 -03:00
Enrico 3438bd914b Revert "Added Makefile with test command."
This reverts commit 8bab36469d.

Conflicts:
	Makefile
2013-07-11 17:54:36 -03:00
Enrico a863acce87 Added ability to create binds when starting a container. 2013-07-11 17:54:36 -03:00
Thatcher be9c964730 Fixed bug by which c.port('<id>', <port>) would fail because when port not a string
e.g. 
c.port('e087bc23f8d5', 80)

would fail

and 
c.port('e087bc23f8d5', '80') would work. I now inserted str() so it should always work.
2013-07-11 17:53:14 -03:00
Joffrey F 8633e5547f Merge pull request #17 from dhrp/master
Fixed bug by which c.port('<id>', <port>) would fail
2013-07-11 12:33:42 -07:00
Paulo Sousa e1c8a57c85 Added option to attach on containers and be verbose on build process 2013-07-11 16:03:45 -03:00
Thatcher 2095fee005 Fixed bug by which c.port('<id>', <port>) would fail because when port not a string
e.g. 
c.port('e087bc23f8d5', 80)

would fail

and 
c.port('e087bc23f8d5', '80') would work. I now inserted str() so it should always work.
2013-07-05 18:20:38 -07:00
Enrico 2551105320 Merge branch 'upstream-master' into bind-mounts
Conflicts:
	tests/test.py
2013-07-05 16:23:37 -03:00
Enrico 76d2aa06da Added documentation about the `binds` argument in the `start` method. 2013-07-05 15:53:53 -03:00
Enrico 835f350bd7 Added content-type header to the `post_json` method, some routes need it. 2013-07-05 15:45:58 -03:00
Enrico c2a145c2d8 Added ability to create binds when starting a container. 2013-07-05 15:25:52 -03:00
Joffrey F d03d4fb5ca Merge pull request #15 from elbaschid/add_python3_support
Make docker-py compatible with python 3
2013-07-05 10:31:24 -07:00
shin- b3378224b2 Bumped version 2013-07-05 19:08:43 +02:00
shin- f3c91c8d58 Added ChangeLog 2013-07-05 19:07:07 +02:00
shin- 2c186304a8 Added test for Client.build 2013-07-05 19:04:38 +02:00
Sebastian Vetter 48ed4a1d2e Add python 3 support 2013-07-06 00:32:28 +10:00