docker-api 1.8.4 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/docker/image.rb +4 -4
- data/lib/docker/util.rb +9 -1
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +1 -3
- data/spec/docker/util_spec.rb +23 -2
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +16 -16
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +6 -6
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +6 -6
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +6 -6
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +97 -69
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +12 -12
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +12 -12
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +19 -19
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +14 -14
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +9 -122
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +24 -24
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +24 -24
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +12 -12
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +5 -5
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +15 -15
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +14 -82732
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +13 -13
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +13 -13
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +49 -34
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +39 -39
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +14 -14
- 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 +38 -38
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +21 -21
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +52 -37
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +7 -7
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +15 -15
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +9 -9
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +13 -13
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +19 -22
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +7 -7
- 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 +25 -27
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +7 -7
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +7 -7
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +8 -7
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +21 -20
- 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 +36 -38
- 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
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +8 -8
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +10 -10
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +213 -30
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +45 -51
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +48 -100
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +30 -30
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +7 -7
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +32 -32
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +8 -8
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +43 -102
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +9 -9
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +18 -18
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +18 -18
- 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 +12 -12
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +34 -22
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +6 -6
- metadata +2 -6
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +0 -156
- 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 +0 -93
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: "{\"Cmd\":[\"true\"],\"Image\":\"base\"}"
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.7.6
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 201
|
17
|
-
message:
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Wed, 12 Feb 2014 18:05:45 GMT
|
23
|
-
Content-Length:
|
24
|
-
- '90'
|
25
|
-
Connection:
|
26
|
-
- close
|
27
|
-
body:
|
28
|
-
encoding: UTF-8
|
29
|
-
string: |
|
30
|
-
{"Id":"442d2c596cdc0146d3a375cb1bb0ff4b6c6b3e754d6a50687df511f28ff8d925","Warnings":null}
|
31
|
-
http_version:
|
32
|
-
recorded_at: Wed, 12 Feb 2014 18:05:45 GMT
|
33
|
-
- request:
|
34
|
-
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.8/commit?container=442d2c59&container_config=%7B%22Cmd%22%3D%3E%5B%22pwd%22%5D%7D
|
36
|
-
body:
|
37
|
-
encoding: US-ASCII
|
38
|
-
string: ''
|
39
|
-
headers:
|
40
|
-
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.7.6
|
42
|
-
Content-Type:
|
43
|
-
- text/plain
|
44
|
-
response:
|
45
|
-
status:
|
46
|
-
code: 201
|
47
|
-
message:
|
48
|
-
headers:
|
49
|
-
Content-Type:
|
50
|
-
- application/json
|
51
|
-
Date:
|
52
|
-
- Wed, 12 Feb 2014 18:05:46 GMT
|
53
|
-
Content-Length:
|
54
|
-
- '74'
|
55
|
-
Connection:
|
56
|
-
- close
|
57
|
-
body:
|
58
|
-
encoding: UTF-8
|
59
|
-
string: |
|
60
|
-
{"Id":"8bf7ee4e0ceb6cf71d2e6dcd1ba2a810df6f01066e9b3f417bc9d34c12b44089"}
|
61
|
-
http_version:
|
62
|
-
recorded_at: Wed, 12 Feb 2014 18:05:46 GMT
|
63
|
-
- request:
|
64
|
-
method: post
|
65
|
-
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
66
|
-
body:
|
67
|
-
encoding: UTF-8
|
68
|
-
string: "{\"Image\":\"8bf7ee4e0ceb6cf71d2e6dcd1ba2a810df6f01066e9b3f417bc9d34c12b44089\",\"Cmd\":null}"
|
69
|
-
headers:
|
70
|
-
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.7.6
|
72
|
-
Content-Type:
|
73
|
-
- application/json
|
74
|
-
response:
|
75
|
-
status:
|
76
|
-
code: 500
|
77
|
-
message:
|
78
|
-
headers:
|
79
|
-
Content-Type:
|
80
|
-
- text/plain; charset=utf-8
|
81
|
-
Date:
|
82
|
-
- Wed, 12 Feb 2014 18:05:46 GMT
|
83
|
-
Content-Length:
|
84
|
-
- '29'
|
85
|
-
Connection:
|
86
|
-
- close
|
87
|
-
body:
|
88
|
-
encoding: UTF-8
|
89
|
-
string: |
|
90
|
-
create: No command specified
|
91
|
-
http_version:
|
92
|
-
recorded_at: Wed, 12 Feb 2014 18:05:46 GMT
|
93
|
-
recorded_with: VCR 2.8.0
|