docker-api 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.cane +0 -1
  3. data/README.md +6 -7
  4. data/docker-api.gemspec +3 -4
  5. data/lib/docker.rb +10 -5
  6. data/lib/docker/connection.rb +2 -0
  7. data/lib/docker/container.rb +39 -4
  8. data/lib/docker/error.rb +6 -0
  9. data/lib/docker/event.rb +40 -0
  10. data/lib/docker/image.rb +37 -13
  11. data/lib/docker/util.rb +25 -1
  12. data/lib/docker/version.rb +2 -2
  13. data/spec/docker/container_spec.rb +37 -19
  14. data/spec/docker/event_spec.rb +79 -0
  15. data/spec/docker/image_spec.rb +89 -30
  16. data/spec/docker/util_spec.rb +83 -0
  17. data/spec/docker_spec.rb +47 -2
  18. data/spec/fixtures/{Dockerfile → build_from_dir/Dockerfile} +0 -0
  19. data/spec/fixtures/top/Dockerfile +2 -0
  20. data/spec/support/vcr.rb +1 -4
  21. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +33 -0
  22. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -7
  23. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +6 -6
  24. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +6 -6
  25. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +27 -97
  26. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +18 -19
  27. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +22 -22
  28. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +18 -18
  29. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +178 -0
  30. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +54 -24
  31. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +27 -60
  32. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +27 -60
  33. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +7 -7
  34. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +16 -46
  35. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +24 -17
  36. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +14 -14
  37. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +36 -49
  38. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +43 -43
  39. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +17 -17
  40. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_returns_a_status_code_of_0/creates_a_new_container_to_run_the_specified_command.yml +47 -47
  41. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +25 -25
  42. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +40 -53
  43. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +89 -25
  44. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +17 -17
  45. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +12 -12
  46. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +17 -17
  47. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +12 -12
  48. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml +110 -0
  49. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/{builds_an_image.yml → without_query_parameters/builds_an_image.yml} +5 -5
  50. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +7 -9
  51. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +121 -0
  52. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_the_image_and_tags_it.yml +151 -0
  53. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +5 -5
  54. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +10 -10
  55. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +53 -109
  56. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +32 -68
  57. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +5 -5
  58. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +40 -68
  59. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +10 -10
  60. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +161 -0
  61. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +17 -17
  62. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +23 -24
  63. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +23 -24
  64. data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml +148 -0
  65. data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml +68 -0
  66. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +13 -11
  67. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +10 -10
  68. metadata +32 -24
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.6.0
12
+ Content-Type:
13
+ - text/plain
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
+ http_version:
35
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
36
+ - request:
37
+ method: post
38
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
39
+ body:
40
+ encoding: UTF-8
41
+ string: ! '{"Image":"base"}'
42
+ headers:
43
+ User-Agent:
44
+ - Swipely/Docker-API 1.6.0
45
+ Content-Type:
46
+ - application/json
47
+ response:
48
+ status:
49
+ code: 500
50
+ message:
51
+ headers:
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ MjE=
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NyBHTVQ=
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ! 'No command specified
64
+
65
+ '
66
+ http_version:
67
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
68
+ recorded_with: VCR 2.7.0
@@ -2,32 +2,37 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://unix/v1.4/images/search?term=sshd
5
+ uri: unix:///var/run/docker.sock/v1.6/images/search?term=sshd
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.4
11
+ - Swipely/Docker-API 1.6.0
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message:
18
18
  headers:
19
19
  !binary "Q29udGVudC1UeXBl":
20
20
  - !binary |-
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0ODowMiBHTVQ=
24
+ RnJpLCAyNSBPY3QgMjAxMyAxNjozMzo1NCBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
28
28
  body:
29
29
  encoding: US-ASCII
30
- string: ! '[{"Name":"cespare/sshd","Description":""},{"Name":"johnfuller/sshd","Description":""},{"Name":"dhrp/mongodb-sshd","Description":""},{"Name":"rayang2004/sshd","Description":""},{"Name":"dhrp/sshd","Description":"SSH
30
+ string: ! '[{"Name":"lorieri/daemontools-sshd-nginx","Description":""},{"Name":"onyxperidot/base_sshd","Description":""},{"Name":"tekknolagi/sshd","Description":""},{"Name":"realyze/ubuntu-node-sshd","Description":"Ubuntu
31
+ 12.04\nNodeJS 0.10.18\nsshd"},{"Name":"hyao/sshd","Description":""},{"Name":"simoman/sshd","Description":"Base
32
+ + sshd + proxy + static ip addr."},{"Name":"blissdev/sshd","Description":""},{"Name":"qooleot/ivcsshd","Description":""},{"Name":"aterreno/hello-clojure","Description":"Simple
33
+ compojure hello world with sshd and supervisord to keep the service up."},{"Name":"vdrizheruk/sshd","Description":"just
34
+ ssh daemon"},{"Name":"zilin/docker-sshd","Description":""},{"Name":"dhrp/sshd-ping","Description":""},{"Name":"jonhadfield/sshd","Description":"Centos
35
+ 6.4 (64bit) with sshd"},{"Name":"rblomberg/sshd","Description":""},{"Name":"cespare/sshd","Description":""},{"Name":"johnfuller/sshd","Description":""},{"Name":"dhrp/mongodb-sshd","Description":""},{"Name":"rayang2004/sshd","Description":""},{"Name":"dhrp/sshd","Description":"SSH
31
36
  Daemon created in the ssh daemon documentation example"},{"Name":"toorop/daemontools-sshd","Description":"sshd
32
37
  daemon supervised by DJB daemontools - run cmd :\r\ndocker run -d -p 22 toorop/daemontools-sshd
33
38
  /usr/bin/svscanboot - \r\n\r\nDefault root password : demo - \r\n\r\nSSHD
@@ -41,11 +46,8 @@ http_interactions:
41
46
  for Go developers - Go 1.1 + Git + sshd - run with \"docker run -d -p 22 -h
42
47
  toorop/golang /usr/bin/svscanboot\" - connect throw SSH \"ssh root@localhost
43
48
  -pSSHD_PORT\" default password is \"demo\" - add users : \"adduser USERNAME\"
44
- this will also configure USER $HOME directory - Start coding. Enjoy ;)"},{"Name":"wma55/u1210sshd","Description":""},{"Name":"jdswinbank/sshd","Description":""},{"Name":"vgauthier/sshd","Description":""},{"Name":"pshouse/sshd-pharo-core","Description":"Provides
45
- access to pharo-core command line interface"},{"Name":"dongweiming/sshd","Description":""},{"Name":"kpelykh/sshd","Description":""},{"Name":"oss17888/sshd","Description":""},{"Name":"zefhemel/sshd","Description":"Runs
46
- a SSHd server in daemon mode"},{"Name":"lorieri/daemontools-sshd-nginx","Description":""},{"Name":"onyxperidot/base_sshd","Description":""},{"Name":"tekknolagi/sshd","Description":""},{"Name":"realyze/ubuntu-node-sshd","Description":"Ubuntu
47
- 12.04\nNodeJS 0.10.18\nsshd"},{"Name":"hyao/sshd","Description":""},{"Name":"simoman/sshd","Description":"Base
48
- + sshd + proxy + static ip addr."},{"Name":"blissdev/sshd","Description":""}]'
49
+ this will also configure USER $HOME directory - Start coding. Enjoy ;)"},{"Name":"zefhemel/sshd","Description":"Runs
50
+ a SSHd server in daemon mode"}]'
49
51
  http_version:
50
- recorded_at: Mon, 07 Oct 2013 00:48:02 GMT
52
+ recorded_at: Fri, 25 Oct 2013 16:33:54 GMT
51
53
  recorded_with: VCR 2.6.0
@@ -2,26 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/images/create?fromImage=base
5
+ uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.4
11
+ - Swipely/Docker-API 1.6.0
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message:
18
18
  headers:
19
19
  !binary "Q29udGVudC1UeXBl":
20
20
  - !binary |-
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
24
+ V2VkLCAzMCBPY3QgMjAxMyAxNDowNTozOCBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
@@ -32,22 +32,22 @@ http_interactions:
32
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
34
  http_version:
35
- recorded_at: Mon, 07 Oct 2013 00:47:50 GMT
35
+ recorded_at: Wed, 30 Oct 2013 14:05:39 GMT
36
36
  - request:
37
37
  method: post
38
- uri: http://unix/v1.4/images/base/tag?force=true&repo=base2
38
+ uri: unix:///var/run/docker.sock/v1.6/images/base/tag?force=true&repo=base2
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: ''
42
42
  headers:
43
43
  User-Agent:
44
- - Swipely/Docker-API 1.5.4
44
+ - Swipely/Docker-API 1.6.0
45
45
  Content-Type:
46
46
  - text/plain
47
47
  response:
48
48
  status:
49
49
  code: 201
50
- message: ''
50
+ message:
51
51
  headers:
52
52
  !binary "Q29udGVudC1UeXBl":
53
53
  - !binary |-
@@ -57,10 +57,10 @@ http_interactions:
57
57
  MA==
58
58
  !binary "RGF0ZQ==":
59
59
  - !binary |-
60
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MCBHTVQ=
60
+ V2VkLCAzMCBPY3QgMjAxMyAxNDowNTozOSBHTVQ=
61
61
  body:
62
62
  encoding: US-ASCII
63
63
  string: ''
64
64
  http_version:
65
- recorded_at: Mon, 07 Oct 2013 00:47:50 GMT
65
+ recorded_at: Wed, 30 Oct 2013 14:05:39 GMT
66
66
  recorded_with: VCR 2.6.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.3
19
+ version: '0.28'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.27.3
26
+ version: '0.28'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,34 +108,20 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: webmock
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: 1.11.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: 1.11.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: vcr
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - '>='
130
116
  - !ruby/object:Gem::Version
131
- version: 2.4.0
117
+ version: 2.7.0
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - '>='
137
123
  - !ruby/object:Gem::Version
138
- version: 2.4.0
124
+ version: 2.7.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: simplecov
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -154,6 +140,7 @@ description: A simple REST client for the Docker Remote API
154
140
  email:
155
141
  - tomhulihan@swipely.com
156
142
  - bright@swipely.com
143
+ - toddlunter@swipely.com
157
144
  executables: []
158
145
  extensions: []
159
146
  extra_rdoc_files: []
@@ -170,17 +157,21 @@ files:
170
157
  - lib/docker/connection.rb
171
158
  - lib/docker/container.rb
172
159
  - lib/docker/error.rb
160
+ - lib/docker/event.rb
173
161
  - lib/docker/image.rb
174
162
  - lib/docker/util.rb
175
163
  - lib/docker/version.rb
176
164
  - spec/docker/connection_spec.rb
177
165
  - spec/docker/container_spec.rb
166
+ - spec/docker/event_spec.rb
178
167
  - spec/docker/image_spec.rb
179
168
  - spec/docker/util_spec.rb
180
169
  - spec/docker_spec.rb
181
- - spec/fixtures/Dockerfile
170
+ - spec/fixtures/build_from_dir/Dockerfile
171
+ - spec/fixtures/top/Dockerfile
182
172
  - spec/spec_helper.rb
183
173
  - spec/support/vcr.rb
174
+ - spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml
184
175
  - spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml
185
176
  - spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml
186
177
  - spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml
@@ -188,6 +179,7 @@ files:
188
179
  - spec/vcr/Docker_Container/_attach/yields_each_chunk.yml
189
180
  - spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml
190
181
  - spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml
182
+ - spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml
191
183
  - spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml
192
184
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml
193
185
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml
@@ -206,8 +198,11 @@ files:
206
198
  - spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml
207
199
  - spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml
208
200
  - spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml
209
- - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml
201
+ - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml
202
+ - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml
210
203
  - spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
204
+ - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml
205
+ - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_the_image_and_tags_it.yml
211
206
  - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml
212
207
  - spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml
213
208
  - spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml
@@ -215,9 +210,12 @@ files:
215
210
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml
216
211
  - spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml
217
212
  - spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml
213
+ - spec/vcr/Docker_Image/_push/pushes_the_Image.yml
218
214
  - spec/vcr/Docker_Image/_remove/removes_the_Image.yml
219
215
  - spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
220
216
  - spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml
217
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml
218
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml
221
219
  - spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml
222
220
  - spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml
223
221
  homepage: https://github.com/swipely/docker-api
@@ -247,12 +245,15 @@ summary: A simple REST client for the Docker Remote API
247
245
  test_files:
248
246
  - spec/docker/connection_spec.rb
249
247
  - spec/docker/container_spec.rb
248
+ - spec/docker/event_spec.rb
250
249
  - spec/docker/image_spec.rb
251
250
  - spec/docker/util_spec.rb
252
251
  - spec/docker_spec.rb
253
- - spec/fixtures/Dockerfile
252
+ - spec/fixtures/build_from_dir/Dockerfile
253
+ - spec/fixtures/top/Dockerfile
254
254
  - spec/spec_helper.rb
255
255
  - spec/support/vcr.rb
256
+ - spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml
256
257
  - spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml
257
258
  - spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml
258
259
  - spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml
@@ -260,6 +261,7 @@ test_files:
260
261
  - spec/vcr/Docker_Container/_attach/yields_each_chunk.yml
261
262
  - spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml
262
263
  - spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml
264
+ - spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml
263
265
  - spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml
264
266
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml
265
267
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml
@@ -278,8 +280,11 @@ test_files:
278
280
  - spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml
279
281
  - spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml
280
282
  - spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml
281
- - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml
283
+ - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml
284
+ - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml
282
285
  - spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
286
+ - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml
287
+ - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_the_image_and_tags_it.yml
283
288
  - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml
284
289
  - spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml
285
290
  - spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml
@@ -287,8 +292,11 @@ test_files:
287
292
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml
288
293
  - spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml
289
294
  - spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml
295
+ - spec/vcr/Docker_Image/_push/pushes_the_Image.yml
290
296
  - spec/vcr/Docker_Image/_remove/removes_the_Image.yml
291
297
  - spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
292
298
  - spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml
299
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml
300
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml
293
301
  - spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml
294
302
  - spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml