bigrig 0.0.0 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rspec +3 -0
- data/.rubocop.yml +20 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +84 -0
- data/LICENSE +28 -0
- data/README.md +191 -0
- data/Rakefile +10 -0
- data/bigrig.gemspec +29 -0
- data/bin/bigrig +113 -0
- data/lib/bigrig/actions/destroy_action.rb +21 -0
- data/lib/bigrig/actions/dev_action.rb +19 -0
- data/lib/bigrig/actions/log_action.rb +45 -0
- data/lib/bigrig/actions/run_action.rb +14 -0
- data/lib/bigrig/actions/ship_action.rb +51 -0
- data/lib/bigrig/actions.rb +5 -0
- data/lib/bigrig/dependency_graph.rb +21 -0
- data/lib/bigrig/descriptor.rb +43 -0
- data/lib/bigrig/docker_adapter.rb +129 -0
- data/lib/bigrig/models/application.rb +22 -0
- data/lib/bigrig/models/base_model.rb +7 -0
- data/lib/bigrig/models/container.rb +40 -0
- data/lib/bigrig/models.rb +3 -0
- data/lib/bigrig/output_parser.rb +52 -0
- data/lib/bigrig/runner.rb +94 -0
- data/lib/bigrig/version.rb +3 -0
- data/lib/bigrig.rb +8 -0
- data/spec/bigrig/actions/destroy_action_spec.rb +55 -0
- data/spec/bigrig/actions/dev_action_spec.rb +17 -0
- data/spec/bigrig/actions/log_action_spec.rb +33 -0
- data/spec/bigrig/actions/run_action_spec.rb +270 -0
- data/spec/bigrig/actions/ship_action_spec.rb +82 -0
- data/spec/bigrig/dependency_graph_spec.rb +19 -0
- data/spec/bigrig/descriptor_spec.rb +56 -0
- data/spec/bigrig/docker_adapter_spec.rb +409 -0
- data/spec/bigrig/models/application_spec.rb +32 -0
- data/spec/bigrig/models/container_spec.rb +115 -0
- data/spec/bigrig/output_parser_spec.rb +71 -0
- data/spec/bigrig_spec.rb +249 -0
- data/spec/data/addscontainer.json +24 -0
- data/spec/data/build/Dockerfile +2 -0
- data/spec/data/build/test +0 -0
- data/spec/data/dev.json +26 -0
- data/spec/data/duplicate.json +13 -0
- data/spec/data/env.json +12 -0
- data/spec/data/hosts_ip.json +12 -0
- data/spec/data/hosts_name.json +11 -0
- data/spec/data/links.json +13 -0
- data/spec/data/log.json +8 -0
- data/spec/data/multiple.json +13 -0
- data/spec/data/path.json +5 -0
- data/spec/data/ports.json +9 -0
- data/spec/data/profiles.json +24 -0
- data/spec/data/ship.json +5 -0
- data/spec/data/single.json +8 -0
- data/spec/data/tagandpath.json +24 -0
- data/spec/data/tiny-image.tar +0 -0
- data/spec/data/volumes.json +13 -0
- data/spec/spec_helper.rb +104 -0
- data/spec/support/bigrig_vcr +8 -0
- data/spec/support/vcr.rb +15 -0
- data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_has_exited/should_remove_the_container.yml +392 -0
- data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_is_running/kills_and_removes_the_container.yml +418 -0
- data/spec/vcr/Bigrig_DockerAdapter/_build/builds_the_given_directory.yml +63 -0
- data/spec/vcr/Bigrig_DockerAdapter/_build/passes_build_input_to_a_block.yml +35 -0
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_exists/is_true.yml +82 -0
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_does_not_exist/raise_a_ImageNotFoundError.yml +172 -0
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_exists/returns_the_image_id.yml +148 -0
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_does_not_exist/should_raise_an_error.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_is_running/should_kill_the_container.yml +200 -0
- data/spec/vcr/Bigrig_DockerAdapter/_logs/streams_logs_to_a_block.yml +163 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml +64 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_does_not_exist/raises_a_RepoNotFoundError.yml +30 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_exists/returns_the_image_id.yml +92 -0
- data/spec/vcr/Bigrig_DockerAdapter/_push/given_credentials/will_pass_login_and_password.yml +254 -0
- data/spec/vcr/Bigrig_DockerAdapter/_push/should_push_the_image.yml +482 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_does_not_exist/raises_a_ContainerNotFoundError.yml +227 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_exists/should_remove_the_container.yml +222 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_is_running/raises_a_ContainerRunningError.yml +80 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_doesnt_exist/raises_an_error.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_exists/removes_the_image.yml +199 -0
- data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name/starts_the_container_with_the_right_name.yml +204 -0
- data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_env_variables/starts_the_container_with_env_set.yml +204 -0
- data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_ports/starts_the_container_with_ports_exposed.yml +230 -0
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_does_not_exist/returns_false.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_not_running/returns_false.yml +82 -0
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_running/returns_true.yml +103 -0
- data/spec/vcr/Bigrig_DockerAdapter/_tag/should_tag_the_image.yml +290 -0
- data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +163 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_a_path/builds_the_image_before_starting_it.yml +310 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_ip/should_pass_hosts_to_container.yml +430 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_name/should_lookup_ips_for_hosts_with_a_hostname.yml +430 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_links/should_pass_links_to_the_right_container.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/launches_both_containers_in_parallel.yml +731 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/spins_up_multiple_containers.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/should_spin_up_a_single_container.yml +404 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/when_a_dead_container_exists/should_remove_existing_containers.yml +329 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/should_pass_volumes_from_to_the_right_container.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/starts_the_dependant_container_last.yml +731 -0
- data/spec/vcr/Bigrig_RunAction/_perform/when_activating_profiles_that_do_not_exist/ignores_the_missing_profile.yml +409 -0
- data/spec/vcr/Bigrig_RunAction/_perform/with_a_file_with_active_profiles/uses_the_overridden_image.yml +432 -0
- data/spec/vcr/bigrig/destroy/spec/data/single_json/kills_the_container.yml +166 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +37 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/destroys_containers_on_exit.yml +227 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +107 -0
- data/spec/vcr/bigrig/logs/spec/data/log_json/tails_the_logs.yml +163 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/leaves_existing_env_values_alone.yml +110 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_env.yml +110 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml +103 -0
- data/spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml +75 -0
- data/spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml +101 -0
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml +212 -0
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml +128 -0
- data/spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml +179 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +1068 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_destroys_containers_on_exit.yml +1070 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +1068 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_tails_the_logs.yml +1075 -0
- data/spec/vcr/bigrig_bin_bigrig_logs_spec/data/log_json_tails_the_logs.yml +69 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_leaves_existing_env_values_alone.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_env.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml +335 -0
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml +285 -0
- data/test/dev/shipper.json +24 -0
- data/test/logs/bigrig.json +6 -0
- data/test/logs/container1/Dockerfile +4 -0
- data/test/logs/container1/run.sh +7 -0
- data/test/logs/container2/Dockerfile +4 -0
- data/test/logs/container2/run.sh +7 -0
- data/test/ship/bigrig-1.2.3.json +1 -0
- data/test/ship/bigrig.json +5 -0
- data/test/ship/registry.json +11 -0
- data/test/ship/ship/Dockerfile +4 -0
- data/test/ship/ship/run.sh +6 -0
- data/test/volumes_from/exports_volumes/Dockerfile +8 -0
- data/test/volumes_from/exports_volumes/index.html +8 -0
- data/test/volumes_from/exports_volumes/run.sh +7 -0
- data/test/volumes_from/shipper.json +14 -0
- metadata +278 -8
@@ -0,0 +1,200 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Fshow-env"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.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 Mar 2015 21:37:43 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/show-env\"}\r\n{\"status\":\"Pulling
|
26
|
+
image (latest) from hawknewton/show-env\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Pulling
|
27
|
+
image (latest) from hawknewton/show-env, endpoint: https://registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Pulling
|
28
|
+
dependent layers\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Download
|
29
|
+
complete\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Download
|
30
|
+
complete\",\"progressDetail\":{},\"id\":\"50215b109eda\"}{\"status\":\"Download
|
31
|
+
complete\",\"progressDetail\":{},\"id\":\"53f380325ee9\"}{\"status\":\"Download
|
32
|
+
complete\",\"progressDetail\":{},\"id\":\"71e62a8beff3\"}{\"status\":\"Download
|
33
|
+
complete\",\"progressDetail\":{},\"id\":\"7d2b41d8b634\"}{\"status\":\"Download
|
34
|
+
complete\",\"progressDetail\":{},\"id\":\"eac5dcb90974\"}{\"status\":\"Download
|
35
|
+
complete\",\"progressDetail\":{},\"id\":\"4641ba92cd87\"}{\"status\":\"Download
|
36
|
+
complete\",\"progressDetail\":{},\"id\":\"49d1d522cd44\"}{\"status\":\"Download
|
37
|
+
complete\",\"progressDetail\":{},\"id\":\"4164e8505679\"}{\"status\":\"Download
|
38
|
+
complete\",\"progressDetail\":{},\"id\":\"fd3901892100\"}{\"status\":\"Download
|
39
|
+
complete\",\"progressDetail\":{},\"id\":\"aa82a409e225\"}{\"status\":\"Download
|
40
|
+
complete\",\"progressDetail\":{},\"id\":\"4e2f12b9e246\"}{\"status\":\"Download
|
41
|
+
complete\",\"progressDetail\":{},\"id\":\"a490c0bc4c17\"}{\"status\":\"Download
|
42
|
+
complete\",\"progressDetail\":{},\"id\":\"30c479473225\"}{\"status\":\"Download
|
43
|
+
complete\",\"progressDetail\":{},\"id\":\"c18ee8e5eefa\"}{\"status\":\"Download
|
44
|
+
complete\",\"progressDetail\":{},\"id\":\"b020883398e6\"}{\"status\":\"Download
|
45
|
+
complete\",\"progressDetail\":{},\"id\":\"4929b61a5fda\"}{\"status\":\"Download
|
46
|
+
complete\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Download
|
47
|
+
complete\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Status:
|
48
|
+
Image is up to date for hawknewton/show-env\"}\r\n"
|
49
|
+
http_version:
|
50
|
+
recorded_at: Thu, 12 Mar 2015 21:37:46 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: "<DOCKER_HOST>/v1.16/containers/create"
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"Image":"b9c5be3a918d"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- Swipely/Docker-API 1.20.0
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 201
|
65
|
+
message:
|
66
|
+
headers:
|
67
|
+
Content-Type:
|
68
|
+
- application/json
|
69
|
+
Date:
|
70
|
+
- Thu, 12 Mar 2015 21:37:44 GMT
|
71
|
+
Content-Length:
|
72
|
+
- '90'
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: |
|
76
|
+
{"Id":"9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1","Warnings":null}
|
77
|
+
http_version:
|
78
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
79
|
+
- request:
|
80
|
+
method: post
|
81
|
+
uri: "<DOCKER_HOST>/v1.16/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/start"
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: "{}"
|
85
|
+
headers:
|
86
|
+
User-Agent:
|
87
|
+
- Swipely/Docker-API 1.20.0
|
88
|
+
Content-Type:
|
89
|
+
- application/json
|
90
|
+
response:
|
91
|
+
status:
|
92
|
+
code: 204
|
93
|
+
message:
|
94
|
+
headers:
|
95
|
+
Date:
|
96
|
+
- Thu, 12 Mar 2015 21:37:45 GMT
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: ''
|
100
|
+
http_version:
|
101
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
102
|
+
- request:
|
103
|
+
method: get
|
104
|
+
uri: "<DOCKER_HOST>/v1.16/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/json"
|
105
|
+
body:
|
106
|
+
encoding: US-ASCII
|
107
|
+
string: ''
|
108
|
+
headers:
|
109
|
+
User-Agent:
|
110
|
+
- Swipely/Docker-API 1.20.0
|
111
|
+
Content-Type:
|
112
|
+
- text/plain
|
113
|
+
response:
|
114
|
+
status:
|
115
|
+
code: 200
|
116
|
+
message:
|
117
|
+
headers:
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
Date:
|
121
|
+
- Thu, 12 Mar 2015 21:37:45 GMT
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: |
|
125
|
+
{"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"80/tcp":{}},"Hostname":"9e56cd9ad255","Image":"b9c5be3a918d","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:37:44.735639596Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/hosts","Id":"9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/prickly_engelbart","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.94","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:25e","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:5e","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11668,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:37:45.071387621Z"},"Volumes":{},"VolumesRW":{}}
|
126
|
+
http_version:
|
127
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
128
|
+
- request:
|
129
|
+
method: post
|
130
|
+
uri: "<DOCKER_HOST>/v1.16/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/kill"
|
131
|
+
body:
|
132
|
+
encoding: US-ASCII
|
133
|
+
string: ''
|
134
|
+
headers:
|
135
|
+
User-Agent:
|
136
|
+
- Swipely/Docker-API 1.20.0
|
137
|
+
Content-Type:
|
138
|
+
- text/plain
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 204
|
142
|
+
message:
|
143
|
+
headers:
|
144
|
+
Date:
|
145
|
+
- Thu, 12 Mar 2015 21:37:45 GMT
|
146
|
+
body:
|
147
|
+
encoding: UTF-8
|
148
|
+
string: ''
|
149
|
+
http_version:
|
150
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
151
|
+
- request:
|
152
|
+
method: get
|
153
|
+
uri: "<DOCKER_HOST>/v1.16/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/json"
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
156
|
+
string: ''
|
157
|
+
headers:
|
158
|
+
User-Agent:
|
159
|
+
- Swipely/Docker-API 1.20.0
|
160
|
+
Content-Type:
|
161
|
+
- text/plain
|
162
|
+
response:
|
163
|
+
status:
|
164
|
+
code: 200
|
165
|
+
message:
|
166
|
+
headers:
|
167
|
+
Content-Type:
|
168
|
+
- application/json
|
169
|
+
Date:
|
170
|
+
- Thu, 12 Mar 2015 21:37:45 GMT
|
171
|
+
body:
|
172
|
+
encoding: UTF-8
|
173
|
+
string: |
|
174
|
+
{"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"80/tcp":{}},"Hostname":"9e56cd9ad255","Image":"b9c5be3a918d","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:37:44.735639596Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/hosts","Id":"9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/prickly_engelbart","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":137,"FinishedAt":"2015-03-12T21:37:45.273234538Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"2015-03-12T21:37:45.071387621Z"},"Volumes":{},"VolumesRW":{}}
|
175
|
+
http_version:
|
176
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
177
|
+
- request:
|
178
|
+
method: delete
|
179
|
+
uri: "<DOCKER_HOST>/v1.16/containers/9e56cd9ad255fcf30216332ef126b4bfecd6708043ba215ccf8080a19babf2c1?force=true"
|
180
|
+
body:
|
181
|
+
encoding: US-ASCII
|
182
|
+
string: ''
|
183
|
+
headers:
|
184
|
+
User-Agent:
|
185
|
+
- Swipely/Docker-API 1.20.0
|
186
|
+
Content-Type:
|
187
|
+
- text/plain
|
188
|
+
response:
|
189
|
+
status:
|
190
|
+
code: 204
|
191
|
+
message:
|
192
|
+
headers:
|
193
|
+
Date:
|
194
|
+
- Thu, 12 Mar 2015 21:37:45 GMT
|
195
|
+
body:
|
196
|
+
encoding: UTF-8
|
197
|
+
string: ''
|
198
|
+
http_version:
|
199
|
+
recorded_at: Thu, 12 Mar 2015 21:37:47 GMT
|
200
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,163 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Flog-test%3A0.0.1"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.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 Mar 2015 21:37:45 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/log-test\"}\r\n{\"status\":\"Pulling
|
26
|
+
image (0.0.1) from hawknewton/log-test\",\"progressDetail\":{},\"id\":\"bf0f8a45f956\"}{\"status\":\"Pulling
|
27
|
+
image (0.0.1) from hawknewton/log-test, endpoint: https://registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"bf0f8a45f956\"}{\"status\":\"Pulling
|
28
|
+
dependent layers\",\"progressDetail\":{},\"id\":\"bf0f8a45f956\"}{\"status\":\"Download
|
29
|
+
complete\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Download
|
30
|
+
complete\",\"progressDetail\":{},\"id\":\"ac5159eeb0a3\"}{\"status\":\"Download
|
31
|
+
complete\",\"progressDetail\":{},\"id\":\"d96760d4a0ed\"}{\"status\":\"Download
|
32
|
+
complete\",\"progressDetail\":{},\"id\":\"100a1992ec48\"}{\"status\":\"Download
|
33
|
+
complete\",\"progressDetail\":{},\"id\":\"76ca2fd90787\"}{\"status\":\"Download
|
34
|
+
complete\",\"progressDetail\":{},\"id\":\"c507982f836d\"}{\"status\":\"Download
|
35
|
+
complete\",\"progressDetail\":{},\"id\":\"bf0f8a45f956\"}{\"status\":\"Download
|
36
|
+
complete\",\"progressDetail\":{},\"id\":\"bf0f8a45f956\"}{\"status\":\"Status:
|
37
|
+
Image is up to date for hawknewton/log-test:0.0.1\"}\r\n"
|
38
|
+
http_version:
|
39
|
+
recorded_at: Thu, 12 Mar 2015 21:37:48 GMT
|
40
|
+
- request:
|
41
|
+
method: post
|
42
|
+
uri: "<DOCKER_HOST>/v1.16/containers/create?name=log-test"
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"Image":"bf0f8a45f956"}'
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- Swipely/Docker-API 1.20.0
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 201
|
54
|
+
message:
|
55
|
+
headers:
|
56
|
+
Content-Type:
|
57
|
+
- application/json
|
58
|
+
Date:
|
59
|
+
- Thu, 12 Mar 2015 21:37:46 GMT
|
60
|
+
Content-Length:
|
61
|
+
- '90'
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: |
|
65
|
+
{"Id":"b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359","Warnings":null}
|
66
|
+
http_version:
|
67
|
+
recorded_at: Thu, 12 Mar 2015 21:37:48 GMT
|
68
|
+
- request:
|
69
|
+
method: post
|
70
|
+
uri: "<DOCKER_HOST>/v1.16/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359/start"
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: "{}"
|
74
|
+
headers:
|
75
|
+
User-Agent:
|
76
|
+
- Swipely/Docker-API 1.20.0
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
response:
|
80
|
+
status:
|
81
|
+
code: 204
|
82
|
+
message:
|
83
|
+
headers:
|
84
|
+
Date:
|
85
|
+
- Thu, 12 Mar 2015 21:37:46 GMT
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: ''
|
89
|
+
http_version:
|
90
|
+
recorded_at: Thu, 12 Mar 2015 21:37:49 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: "<DOCKER_HOST>/v1.16/containers/log-test/json"
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
User-Agent:
|
99
|
+
- Swipely/Docker-API 1.20.0
|
100
|
+
Content-Type:
|
101
|
+
- text/plain
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message:
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
Date:
|
110
|
+
- Thu, 12 Mar 2015 21:37:46 GMT
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: |
|
114
|
+
{"AppArmorProfile":"","Args":[],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/run.sh"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"b05ba5f95f16","Image":"bf0f8a45f956","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:37:46.455682174Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359/hosts","Id":"b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/log-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.95","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:25f","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:5f","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11679,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:37:46.820658344Z"},"Volumes":{},"VolumesRW":{}}
|
115
|
+
http_version:
|
116
|
+
recorded_at: Thu, 12 Mar 2015 21:37:49 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: "<DOCKER_HOST>/v1.16/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359/kill"
|
120
|
+
body:
|
121
|
+
encoding: US-ASCII
|
122
|
+
string: ''
|
123
|
+
headers:
|
124
|
+
User-Agent:
|
125
|
+
- Swipely/Docker-API 1.20.0
|
126
|
+
Content-Type:
|
127
|
+
- text/plain
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 204
|
131
|
+
message:
|
132
|
+
headers:
|
133
|
+
Date:
|
134
|
+
- Thu, 12 Mar 2015 21:37:47 GMT
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: ''
|
138
|
+
http_version:
|
139
|
+
recorded_at: Thu, 12 Mar 2015 21:37:49 GMT
|
140
|
+
- request:
|
141
|
+
method: delete
|
142
|
+
uri: "<DOCKER_HOST>/v1.16/containers/b05ba5f95f166e4cc8e084a2f5eaf5416d65c7b1fe1a942100cffa9bc25b1359"
|
143
|
+
body:
|
144
|
+
encoding: US-ASCII
|
145
|
+
string: ''
|
146
|
+
headers:
|
147
|
+
User-Agent:
|
148
|
+
- Swipely/Docker-API 1.20.0
|
149
|
+
Content-Type:
|
150
|
+
- text/plain
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 204
|
154
|
+
message:
|
155
|
+
headers:
|
156
|
+
Date:
|
157
|
+
- Thu, 12 Mar 2015 21:37:47 GMT
|
158
|
+
body:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: ''
|
161
|
+
http_version:
|
162
|
+
recorded_at: Thu, 12 Mar 2015 21:37:49 GMT
|
163
|
+
recorded_with: VCR 2.9.3
|
data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Ftrue"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.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 Mar 2015 21:38:02 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/true\"}\r\n{\"status\":\"Pulling
|
26
|
+
image (not_exist) from hawknewton/true\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Pulling
|
27
|
+
image (not_exist) from hawknewton/true, endpoint: https://registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Pulling
|
28
|
+
dependent layers\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Download
|
29
|
+
complete\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Download
|
30
|
+
complete\",\"progressDetail\":{},\"id\":\"c0d559283422\"}{\"status\":\"Download
|
31
|
+
complete\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Download
|
32
|
+
complete\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Status:
|
33
|
+
Image is up to date for hawknewton/true\"}\r\n"
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 12 Mar 2015 21:38:05 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: "<DOCKER_HOST>/v1.16/images/5fbce35eb337/json"
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
headers:
|
43
|
+
User-Agent:
|
44
|
+
- Swipely/Docker-API 1.20.0
|
45
|
+
Content-Type:
|
46
|
+
- text/plain
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message:
|
51
|
+
headers:
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
Date:
|
55
|
+
- Thu, 12 Mar 2015 21:38:03 GMT
|
56
|
+
Content-Length:
|
57
|
+
- '1479'
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: |
|
61
|
+
{"Architecture":"amd64","Author":"","Comment":"","Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"cb0575974a6a573010bf8f4fa1ca6ce5ac4760b880c30db72ffe47a4c62849c0","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) CMD [/true]"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-01-10T13:42:58.118276832Z","DockerVersion":"1.3.0","Id":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","Os":"linux","Parent":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","Size":0,"VirtualSize":125}
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 12 Mar 2015 21:38:05 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Fdoesnotexist"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.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 Mar 2015 21:38:01 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/doesnotexist\"}\r\n{\"errorDetail\":{\"message\":\"Error:
|
26
|
+
image hawknewton/doesnotexist: not found\"},\"error\":\"Error: image hawknewton/doesnotexist:
|
27
|
+
not found\"}\r\n"
|
28
|
+
http_version:
|
29
|
+
recorded_at: Thu, 12 Mar 2015 21:38:04 GMT
|
30
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Ftrue%3Alatest"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.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 Mar 2015 21:38:00 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/true\"}\r\n{\"status\":\"Pulling
|
26
|
+
image (latest) from hawknewton/true\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Pulling
|
27
|
+
image (latest) from hawknewton/true, endpoint: https://registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Pulling
|
28
|
+
dependent layers\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Download
|
29
|
+
complete\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Download
|
30
|
+
complete\",\"progressDetail\":{},\"id\":\"c0d559283422\"}{\"status\":\"Download
|
31
|
+
complete\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Download
|
32
|
+
complete\",\"progressDetail\":{},\"id\":\"5fbce35eb337\"}{\"status\":\"Status:
|
33
|
+
Image is up to date for hawknewton/true:latest\"}\r\n"
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 12 Mar 2015 21:38:04 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: "<DOCKER_HOST>/v1.16/images/5fbce35eb337/json"
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
headers:
|
43
|
+
User-Agent:
|
44
|
+
- Swipely/Docker-API 1.20.0
|
45
|
+
Content-Type:
|
46
|
+
- text/plain
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message:
|
51
|
+
headers:
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
Date:
|
55
|
+
- Thu, 12 Mar 2015 21:38:01 GMT
|
56
|
+
Content-Length:
|
57
|
+
- '1479'
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: |
|
61
|
+
{"Architecture":"amd64","Author":"","Comment":"","Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"cb0575974a6a573010bf8f4fa1ca6ce5ac4760b880c30db72ffe47a4c62849c0","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) CMD [/true]"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-01-10T13:42:58.118276832Z","DockerVersion":"1.3.0","Id":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","Os":"linux","Parent":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","Size":0,"VirtualSize":125}
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 12 Mar 2015 21:38:04 GMT
|
64
|
+
- request:
|
65
|
+
method: get
|
66
|
+
uri: "<DOCKER_HOST>/v1.16/images/hawknewton/true:latest/json"
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
string: ''
|
70
|
+
headers:
|
71
|
+
User-Agent:
|
72
|
+
- Swipely/Docker-API 1.20.0
|
73
|
+
Content-Type:
|
74
|
+
- text/plain
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
Content-Type:
|
81
|
+
- application/json
|
82
|
+
Date:
|
83
|
+
- Thu, 12 Mar 2015 21:38:01 GMT
|
84
|
+
Content-Length:
|
85
|
+
- '1479'
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: |
|
89
|
+
{"Architecture":"amd64","Author":"","Comment":"","Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"cb0575974a6a573010bf8f4fa1ca6ce5ac4760b880c30db72ffe47a4c62849c0","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) CMD [/true]"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-01-10T13:42:58.118276832Z","DockerVersion":"1.3.0","Id":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","Os":"linux","Parent":"c0d55928342254f4d19858c0b9ef3991e22ee7d5c2e8f4a0239a398e4b4e657f","Size":0,"VirtualSize":125}
|
90
|
+
http_version:
|
91
|
+
recorded_at: Thu, 12 Mar 2015 21:38:04 GMT
|
92
|
+
recorded_with: VCR 2.9.3
|