docker-api 1.23.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.cane +1 -1
- data/.rspec +1 -0
- data/.travis.yml +7 -6
- data/Dockerfile +2 -0
- data/README.md +5 -5
- data/Rakefile +26 -31
- data/TESTING.md +7 -19
- data/docker-api.gemspec +0 -1
- data/lib/docker/image.rb +6 -2
- data/lib/docker/version.rb +1 -1
- data/spec/docker/container_spec.rb +72 -92
- data/spec/docker/event_spec.rb +33 -23
- data/spec/docker/exec_spec.rb +9 -24
- data/spec/docker/image_spec.rb +75 -81
- data/spec/docker_spec.rb +21 -32
- metadata +4 -200
- data/spec/support/vcr.rb +0 -14
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +0 -32
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +0 -39
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +0 -39
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +0 -34
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +0 -125
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +0 -125
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +0 -125
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +0 -165
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +0 -165
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +0 -136
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +0 -241
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +0 -198
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +0 -84
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -55
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +0 -85
- data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +0 -180
- data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +0 -183
- data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages_and_exit_code.yml +0 -183
- data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +0 -101
- data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +0 -182
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +0 -333
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +0 -84
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +0 -84
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +0 -164
- data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +0 -257
- data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -171
- data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +0 -82
- data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +0 -176
- data/spec/vcr/Docker_Container/_rename/renames_the_container.yml +0 -149
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +0 -243
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +0 -107
- 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 +0 -392
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +0 -140
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +0 -164
- data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -217
- data/spec/vcr/Docker_Container/_streaming_logs/when_passing_a_block/returns_hello_.yml +0 -131
- data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +0 -131
- data/spec/vcr/Docker_Container/_streaming_logs/when_using_a_tty/returns_hello_.yml +0 -131
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +0 -194
- data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +0 -176
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +0 -107
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +0 -107
- data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +0 -130
- data/spec/vcr/Docker_Exec/_json/returns_the_description_as_a_Hash.yml +0 -207
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +0 -182
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +0 -182
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml +0 -180
- data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +0 -180
- data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +0 -180
- data/spec/vcr/Docker_Exec/_start_/when_wait_set_long_time_value/returns_empty_stdout_and_stderr_messages_with_exitcode.yml +0 -189
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +0 -111
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +0 -75
- 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 +0 -219
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +0 -75
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +0 -79
- 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 +0 -194
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/uses_a_cached_version_the_second_time/calls_the_block_and_passes_build_output.yml +0 -96
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +0 -194
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +0 -562
- 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 +0 -601
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id_and_sends_Docker_creds.yml +0 -65
- data/spec/vcr/Docker_Image/_create/with_a_block_capturing_create_output/calls_the_block_and_passes_build_output.yml +0 -38
- data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +0 -33
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +0 -33
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +0 -66
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +0 -265
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +0 -303
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +0 -59
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +0 -1469
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +0 -244
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +0 -224
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +0 -289
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +0 -32
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +0 -366
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +0 -62
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +0 -246
- data/spec/vcr/Docker_Image/_push/streams_output_from_push.yml +0 -246
- data/spec/vcr/Docker_Image/_push/when_the_image_was_retrived_by_get/when_no_tag_is_specified/looks_up_the_first_repo_tag.yml +0 -382
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +0 -264
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +0 -141
- data/spec/vcr/Docker_Image/_refresh_/with_an_explicit_connection/updates_using_the_provided_connection.yml +0 -62
- data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +0 -652
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +0 -162
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +0 -162
- 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 -162
- 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 +0 -63
- data/spec/vcr/Docker_Image/_save/calls_the_class_method.yml +0 -67
- data/spec/vcr/Docker_Image/_save/when_a_filename_is_specified/exports_tarball_of_image_to_specified_file.yml +0 -176
- data/spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml +0 -176
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +0 -79
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +0 -88
@@ -1,79 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: <DOCKER_HOST>/v1.16/images/search?term=sshd
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.18.0
|
12
|
-
Content-Type:
|
13
|
-
- text/plain
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message:
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Thu, 12 Feb 2015 00:56:02 GMT
|
23
|
-
body:
|
24
|
-
encoding: US-ASCII
|
25
|
-
string: ! '[{"description":"","is_official":false,"is_trusted":true,"name":"moul/sshd","star_count":1}
|
26
|
-
|
27
|
-
,{"description":"Fedora docker file for ssh service which managed by supervisor","is_official":false,"is_trusted":true,"name":"kumarpraveen/fedora-sshd","star_count":1}
|
28
|
-
|
29
|
-
,{"description":"Dockerized SSH service, built on top of official Ubuntu images.","is_official":false,"is_trusted":true,"name":"rastasheep/ubuntu-sshd","star_count":1}
|
30
|
-
|
31
|
-
,{"description":"sshd on Fedora 20","is_official":false,"is_trusted":true,"name":"qlkao/sshd","star_count":0}
|
32
|
-
|
33
|
-
,{"description":"Ubuntu 12.04 with SSHd and ubuntu user (check logs for initial
|
34
|
-
password).","is_official":false,"is_trusted":true,"name":"jimt/sshd","star_count":0}
|
35
|
-
|
36
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"ariarijp/sshd","star_count":0}
|
37
|
-
|
38
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"mogproject/sshd","star_count":0}
|
39
|
-
|
40
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"larrycai/ubuntu-sshd","star_count":0}
|
41
|
-
|
42
|
-
,{"description":"Run haproxy with sshd","is_official":false,"is_trusted":true,"name":"llamashoes/haproxy-sshd","star_count":0}
|
43
|
-
|
44
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"titanous/sshd","star_count":0}
|
45
|
-
|
46
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"speg03/sshd-centos","star_count":0}
|
47
|
-
|
48
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"nishik20/sshd","star_count":0}
|
49
|
-
|
50
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"jdauphant/jenkins-slave-sshd","star_count":0}
|
51
|
-
|
52
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"instedd/cdx-sync-sshd","star_count":0}
|
53
|
-
|
54
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"danhixon/sshd","star_count":0}
|
55
|
-
|
56
|
-
,{"description":"A ssh server with password: admin","is_official":false,"is_trusted":true,"name":"wnameless/sshd","star_count":0}
|
57
|
-
|
58
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"typester/sshd","star_count":0}
|
59
|
-
|
60
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"eyenx/ubuntu-sshd","star_count":0}
|
61
|
-
|
62
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"eyenx/archlinux-sshd","star_count":0}
|
63
|
-
|
64
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"monokrome/sshd","star_count":0}
|
65
|
-
|
66
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"mogproject/sshd-supervisor","star_count":0}
|
67
|
-
|
68
|
-
,{"description":"Spoke container for etcd.","is_official":false,"is_trusted":true,"name":"radial/sshd","star_count":0}
|
69
|
-
|
70
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"eyenx/debian-sshd","star_count":0}
|
71
|
-
|
72
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"docku/sshd","star_count":0}
|
73
|
-
|
74
|
-
,{"description":"","is_official":false,"is_trusted":true,"name":"trobz/sshd","star_count":0}
|
75
|
-
|
76
|
-
]'
|
77
|
-
http_version:
|
78
|
-
recorded_at: Thu, 12 Feb 2015 00:56:02 GMT
|
79
|
-
recorded_with: VCR 2.9.2
|
@@ -1,88 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: <DOCKER_HOST>/v1.16/images/create?fromImage=debian%3Awheezy
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.18.0
|
12
|
-
Content-Type:
|
13
|
-
- text/plain
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message:
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Thu, 12 Feb 2015 00:55:48 GMT
|
23
|
-
body:
|
24
|
-
encoding: US-ASCII
|
25
|
-
string: ! "{\"status\":\"The image you are pulling has been verified\",\"id\":\"debian:wheezy\"}\r\n{\"status\":\"Already
|
26
|
-
exists\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Already
|
27
|
-
exists\",\"progressDetail\":{},\"id\":\"30d39e59ffe2\"}{\"status\":\"Already
|
28
|
-
exists\",\"progressDetail\":{},\"id\":\"c90d655b99b2\"}{\"status\":\"Status:
|
29
|
-
Image is up to date for debian:wheezy\"}\r\n"
|
30
|
-
http_version:
|
31
|
-
recorded_at: Thu, 12 Feb 2015 00:55:48 GMT
|
32
|
-
- request:
|
33
|
-
method: post
|
34
|
-
uri: <DOCKER_HOST>/v1.16/images/c90d655b99b2/tag?force=true&repo=teh
|
35
|
-
body:
|
36
|
-
encoding: US-ASCII
|
37
|
-
string: ''
|
38
|
-
headers:
|
39
|
-
User-Agent:
|
40
|
-
- Swipely/Docker-API 1.18.0
|
41
|
-
Content-Type:
|
42
|
-
- text/plain
|
43
|
-
response:
|
44
|
-
status:
|
45
|
-
code: 201
|
46
|
-
message:
|
47
|
-
headers:
|
48
|
-
Date:
|
49
|
-
- Thu, 12 Feb 2015 00:55:48 GMT
|
50
|
-
Content-Length:
|
51
|
-
- '0'
|
52
|
-
Content-Type:
|
53
|
-
- text/plain; charset=utf-8
|
54
|
-
body:
|
55
|
-
encoding: US-ASCII
|
56
|
-
string: ''
|
57
|
-
http_version:
|
58
|
-
recorded_at: Thu, 12 Feb 2015 00:55:48 GMT
|
59
|
-
- request:
|
60
|
-
method: delete
|
61
|
-
uri: <DOCKER_HOST>/v1.16/images/teh:latest?noprune=true
|
62
|
-
body:
|
63
|
-
encoding: US-ASCII
|
64
|
-
string: ''
|
65
|
-
headers:
|
66
|
-
User-Agent:
|
67
|
-
- Swipely/Docker-API 1.18.0
|
68
|
-
Content-Type:
|
69
|
-
- text/plain
|
70
|
-
response:
|
71
|
-
status:
|
72
|
-
code: 200
|
73
|
-
message:
|
74
|
-
headers:
|
75
|
-
Content-Type:
|
76
|
-
- application/json
|
77
|
-
Date:
|
78
|
-
- Thu, 12 Feb 2015 00:55:48 GMT
|
79
|
-
Content-Length:
|
80
|
-
- '28'
|
81
|
-
body:
|
82
|
-
encoding: US-ASCII
|
83
|
-
string: ! '[{"Untagged":"teh:latest"}
|
84
|
-
|
85
|
-
]'
|
86
|
-
http_version:
|
87
|
-
recorded_at: Thu, 12 Feb 2015 00:55:48 GMT
|
88
|
-
recorded_with: VCR 2.9.2
|