Joffrey F
ed2b4581d7
Merge pull request #259 from dotcloud/166-complete-parse-host
...
Support same URL schemes as Docker
2014-07-09 17:34:25 +02:00
Michael Merickel
e15b3bb689
allow docker client to connect to a remote host
...
to run the tests on a host without using the default unix socket, it's
now possible to specify:
DOCKER_HOST=tcp://localdocker:4243 env/bin/python setup.py test
2014-07-07 10:03:42 -05:00
Michael Merickel
272c1f8634
support specifying location of temp folders
...
TestWithBinds was failing when shared folders are used because /tmp was
not shared from OS X to my VM. This fix allows the location of the temp
folders to be changed via:
TMPDIR=$(pwd) env/bin/python setup.py test
This also properly cleans up temp folders which were sticking around
before.
2014-07-05 14:44:14 -05:00
Michael Merickel
b5e75c4019
fix ListContainers which was failing with "executable true; not found"
2014-07-05 14:20:11 -05:00
Joffrey F
d33ba883f1
Fixed base_url related tests
2014-07-03 04:16:08 +02:00
Joffrey F
cf050d28a0
Implemented complete parse_host method to handle all accepted values of Client's base_url. Unit tests
2014-07-03 04:11:34 +02:00
Ali Vakilzade
ea728c1bd5
get size from Client.containers
2014-06-22 21:10:28 +04:30
d11wtq
1ec551cbe7
Add resize() method to Client
2014-06-21 12:21:44 +00:00
Joffrey F
8a63e70bca
Updated/fixed integration tests. Moved 'pull busybox' out of setUp(). Commented out logs streaming test
2014-06-20 20:57:29 +02:00
Joffrey F
be0afebc98
Update unit tests to use API v1.12
2014-06-20 20:55:49 +02:00
Joffrey F
de066a1ae6
Python, not Go
2014-06-17 03:21:42 +02:00
Joffrey F
fb11abc8c6
Merge pull request #236 from rail44/feature-support-get-and-load-image
...
Support get and load image
2014-06-17 02:24:30 +02:00
Satoshi Amemiya
9461035d49
Support get and load image
2014-06-02 16:41:52 +09:00
Sam Riley
d34b78aac5
Fix joining of unicode and byte strings in python3.
...
Check logs response in unit tests, and fix log integration tests for
py3.
2014-06-01 09:01:42 +01:00
Joffrey F
c2b259009a
Updated unit tests
2014-05-28 02:03:10 +02:00
Maxime Petazzoni
55b93d676b
Merge pull request #210 from aanand/universally-compatible-chunking
...
Universally-compatible reading of chunked streams
2014-05-21 11:06:23 -07:00
Joffrey F
97c9de0203
Merge pull request #221 from tutumcloud/memoryswap
...
memory swap limit support
2014-05-13 21:30:41 +02:00
Bernardo
7497daf34a
memory swap limit support
2014-05-11 17:45:15 -04:00
Joffrey F
9bb292bcbd
Merge pull request #209 from tarnfeld/feature/build-context
...
Added ability to specify the full build context
2014-04-28 20:51:46 +02:00
Aanand Prasad
073fdaf671
Universally-compatible reading of chunked streams
...
Docker introduced newlines in stream output in version 0.9
(https://github.com/dotcloud/docker/pull/4276 ), but not to all
endpoints - POST /images/create, for example, does not include them.
This reverts to the old, less pleasant implementation of
_stream_helper(), with a manual check for newlines to fix the problem
described in #176 and fixed in #184 , without the accompanying
regression. It should work against Docker 0.8, 0.9 and 0.10, both when
building and when pulling.
2014-04-28 17:22:14 +01:00
Aanand Prasad
fdd39a85cc
Fix integration test regression
...
The test for starting a container with volume binds hadn't been updated
to use the new dictionary structure for the `binds` argument.
2014-04-28 17:18:39 +01:00
Joffrey F
6c1f7f3e97
Merge pull request #198 from fcoelho/fix-volumes-from
...
Sanitize create_container input for volumes_from
2014-04-23 19:47:07 +02:00
Tom Arnfeld
8acff57f6a
Added test for gzip compressed tar
2014-04-23 13:42:05 +01:00
Tom Arnfeld
45ef4ab931
Fix for pep8 failures
2014-04-23 13:36:36 +01:00
Tom Arnfeld
8983fa561c
Added ability to specify the full build context
2014-04-23 13:18:50 +01:00
Ryan Wallner
77fec67c60
fixes #175 , fix flake8 erros
2014-04-16 14:40:08 -04:00
Felipe Bessa Coelho
3fa6f231fa
Missed empty line for flake8
2014-04-09 13:24:57 -03:00
Felipe Bessa Coelho
16ad8198a9
Add test to check for the absence of volumes_from
2014-04-09 13:10:08 -03:00
Evgeniy L
18d4db09ec
Moved APIError exception to docker.errors module.
2014-04-07 13:31:13 +04:00
shin-
8eedbc895e
Fixed integration tests
2014-04-04 18:16:47 +02:00
shin-
a37d0eea16
Added unit test for create_container with volumes_from
2014-04-04 17:11:00 +02:00
shin-
ad75b37a46
Merge branch 'volumes-from-as-list' of github.com:blackrobot/docker-py into blackrobot-volumes-from-as-list
2014-04-04 16:59:57 +02:00
shin-
54c904f806
Updated unit tests API version, flake8 fixes
2014-04-04 16:55:01 +02:00
Joseph Schorr
156d14efd1
Revert unneeded change
2014-04-04 16:47:23 +02:00
Joseph Schorr
9ae3bcd2f3
Make sure the build command in the client sends the auth credentials along. Required for "FROM " lines that pull from private registries
2014-04-04 16:47:23 +02:00
Damon Jablons
cdd52a172f
Added test for container with volumes_from
2014-04-01 16:08:25 -04:00
Evgeniy L
2a1484f655
Fixes for flake8
...
Next rules were broken
* E265 block comment should start with '# '
* E713 test for membership should be 'not in'
2014-03-28 23:08:22 +04:00
Luka Stojanovic
74499e21e4
make flake happy
2014-03-24 16:10:31 +01:00
Luka Stojanovic
030516eb29
parse_repository_tag function and accompanying test
2014-03-24 16:10:31 +01:00
shin-
82f4c271ea
Updated integration tests
2014-02-18 19:58:50 +01:00
Maxime Petazzoni
64f4ba90ff
Support remote API v1.8 (and make it the default)
...
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2014-02-05 15:25:49 -08:00
Darren Shepherd
8448d0217b
Fix unit tests broken by PR #151
...
Updates newer unit tests to use the http+unix scheme.
2014-01-27 11:25:32 -07:00
Joffrey F
38f3d08114
Merge pull request #151 from ibuildthecloud/http-unix-scheme
...
Support requests >=2.1.0
2014-01-27 09:49:20 -08:00
Joffrey F
38a5967bfd
Merge pull request #145 from aanand/set-stdinonce
...
If attaching to stdin, set StdinOnce, as per the docker CLI.
2014-01-27 09:43:28 -08:00
Ben Firshman
22f147569b
Allow links to specified as (name, alias) tuples
2014-01-27 15:21:44 +00:00
Darren Shepherd
cf946ff27b
flake8 fixes
...
Additionally this change should make moving to /v1.8 slightly less painful
2014-01-26 16:52:14 -07:00
Darren Shepherd
89922efbac
Support requests >=2.1.0
...
Starting with requests 2.1.0 non-HTTP scheme URLs are not parsed anymore.
The net effect of this is that when using the unix socket in docker-py no
query string params are passed in the URL. This change makes docker-py
internally use the scheme http+unix to indicate to requests that this is
still a HTTP URL and should be parsed.
Users of docker-py can still specify 'unix:' as the base_url. The
following forms of base_url are accepted.
http+unix://var/run/docker.sock
unix://var/run/docker.sock
unix:///var/run/docker.sock
http://hostname
tcp://hostname
2014-01-26 16:28:47 -07:00
Aanand Prasad
f2285cb899
If attaching to stdin, set StdinOnce, as per the docker CLI.
2014-01-20 18:00:40 +00:00
Ben Firshman
4bc5d27e51
Add working_dir option to create_container
2014-01-19 16:41:40 +00:00
Ben Firshman
ab2f7a5e38
Add cpu_shares option to create_container
2014-01-19 16:41:25 +00:00