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,227 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
|
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: 404
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- text/plain; charset=utf-8
|
21
|
+
Date:
|
22
|
+
- Thu, 12 Mar 2015 21:38:15 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '28'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: |
|
28
|
+
No such container: dev-test
|
29
|
+
http_version:
|
30
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
31
|
+
- request:
|
32
|
+
method: get
|
33
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: ''
|
37
|
+
headers:
|
38
|
+
User-Agent:
|
39
|
+
- Swipely/Docker-API 1.20.0
|
40
|
+
Content-Type:
|
41
|
+
- text/plain
|
42
|
+
response:
|
43
|
+
status:
|
44
|
+
code: 404
|
45
|
+
message:
|
46
|
+
headers:
|
47
|
+
Content-Type:
|
48
|
+
- text/plain; charset=utf-8
|
49
|
+
Date:
|
50
|
+
- Thu, 12 Mar 2015 21:38:15 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '28'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |
|
56
|
+
No such container: dev-test
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
User-Agent:
|
67
|
+
- Swipely/Docker-API 1.20.0
|
68
|
+
Content-Type:
|
69
|
+
- text/plain
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 404
|
73
|
+
message:
|
74
|
+
headers:
|
75
|
+
Content-Type:
|
76
|
+
- text/plain; charset=utf-8
|
77
|
+
Date:
|
78
|
+
- Thu, 12 Mar 2015 21:38:15 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '28'
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: |
|
84
|
+
No such container: dev-test
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
User-Agent:
|
95
|
+
- Swipely/Docker-API 1.20.0
|
96
|
+
Content-Type:
|
97
|
+
- text/plain
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 404
|
101
|
+
message:
|
102
|
+
headers:
|
103
|
+
Content-Type:
|
104
|
+
- text/plain; charset=utf-8
|
105
|
+
Date:
|
106
|
+
- Thu, 12 Mar 2015 21:38:16 GMT
|
107
|
+
Content-Length:
|
108
|
+
- '28'
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: |
|
112
|
+
No such container: dev-test
|
113
|
+
http_version:
|
114
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ''
|
121
|
+
headers:
|
122
|
+
User-Agent:
|
123
|
+
- Swipely/Docker-API 1.20.0
|
124
|
+
Content-Type:
|
125
|
+
- text/plain
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 404
|
129
|
+
message:
|
130
|
+
headers:
|
131
|
+
Content-Type:
|
132
|
+
- text/plain; charset=utf-8
|
133
|
+
Date:
|
134
|
+
- Thu, 12 Mar 2015 21:38:16 GMT
|
135
|
+
Content-Length:
|
136
|
+
- '28'
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |
|
140
|
+
No such container: dev-logs
|
141
|
+
http_version:
|
142
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
User-Agent:
|
151
|
+
- Swipely/Docker-API 1.20.0
|
152
|
+
Content-Type:
|
153
|
+
- text/plain
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 404
|
157
|
+
message:
|
158
|
+
headers:
|
159
|
+
Content-Type:
|
160
|
+
- text/plain; charset=utf-8
|
161
|
+
Date:
|
162
|
+
- Thu, 12 Mar 2015 21:38:16 GMT
|
163
|
+
Content-Length:
|
164
|
+
- '28'
|
165
|
+
body:
|
166
|
+
encoding: UTF-8
|
167
|
+
string: |
|
168
|
+
No such container: dev-logs
|
169
|
+
http_version:
|
170
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
171
|
+
- request:
|
172
|
+
method: get
|
173
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
|
174
|
+
body:
|
175
|
+
encoding: US-ASCII
|
176
|
+
string: ''
|
177
|
+
headers:
|
178
|
+
User-Agent:
|
179
|
+
- Swipely/Docker-API 1.20.0
|
180
|
+
Content-Type:
|
181
|
+
- text/plain
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 404
|
185
|
+
message:
|
186
|
+
headers:
|
187
|
+
Content-Type:
|
188
|
+
- text/plain; charset=utf-8
|
189
|
+
Date:
|
190
|
+
- Thu, 12 Mar 2015 21:38:16 GMT
|
191
|
+
Content-Length:
|
192
|
+
- '28'
|
193
|
+
body:
|
194
|
+
encoding: UTF-8
|
195
|
+
string: |
|
196
|
+
No such container: dev-logs
|
197
|
+
http_version:
|
198
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers:
|
206
|
+
User-Agent:
|
207
|
+
- Swipely/Docker-API 1.20.0
|
208
|
+
Content-Type:
|
209
|
+
- text/plain
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 404
|
213
|
+
message:
|
214
|
+
headers:
|
215
|
+
Content-Type:
|
216
|
+
- text/plain; charset=utf-8
|
217
|
+
Date:
|
218
|
+
- Thu, 12 Mar 2015 21:38:16 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '28'
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: |
|
224
|
+
No such container: dev-logs
|
225
|
+
http_version:
|
226
|
+
recorded_at: Thu, 12 Mar 2015 21:38:18 GMT
|
227
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
|
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:12 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: |
|
26
|
+
{"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":["PROFILE=dev","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":"0cbdd8ff977e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","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:38:11.28400102Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"80/tcp":[{"HostIp":"","HostPort":"4568"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/hosts","Id":"0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/dev-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.104","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:268","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:68","PortMapping":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"4568"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11857,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:11.79070745Z"},"Volumes":{},"VolumesRW":{}}
|
27
|
+
http_version:
|
28
|
+
recorded_at: Thu, 12 Mar 2015 21:38:14 GMT
|
29
|
+
- request:
|
30
|
+
method: get
|
31
|
+
uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
|
32
|
+
body:
|
33
|
+
encoding: US-ASCII
|
34
|
+
string: ''
|
35
|
+
headers:
|
36
|
+
User-Agent:
|
37
|
+
- Swipely/Docker-API 1.20.0
|
38
|
+
Content-Type:
|
39
|
+
- text/plain
|
40
|
+
response:
|
41
|
+
status:
|
42
|
+
code: 200
|
43
|
+
message:
|
44
|
+
headers:
|
45
|
+
Content-Type:
|
46
|
+
- application/json
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Mar 2015 21:38:12 GMT
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: |
|
52
|
+
{"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":"e9c7fced88fc","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","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:38:11.305651283Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/hosts","Id":"e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/dev-logs","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.103","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:267","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:67","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11845,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:11.691920716Z"},"Volumes":{},"VolumesRW":{}}
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 12 Mar 2015 21:38:14 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: "<DOCKER_HOST>/v1.16/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/json"
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- Swipely/Docker-API 1.20.0
|
64
|
+
Content-Type:
|
65
|
+
- text/plain
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 200
|
69
|
+
message:
|
70
|
+
headers:
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
Date:
|
74
|
+
- Thu, 12 Mar 2015 21:38:12 GMT
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: |
|
78
|
+
{"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":["PROFILE=dev","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":"0cbdd8ff977e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","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:38:11.28400102Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"80/tcp":[{"HostIp":"","HostPort":"4568"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/hosts","Id":"0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/dev-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.104","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:268","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:68","PortMapping":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"4568"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/0cbdd8ff977e309bbfa17f3605d9754718b2610ecc45126486fce09671658efb/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11857,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:11.79070745Z"},"Volumes":{},"VolumesRW":{}}
|
79
|
+
http_version:
|
80
|
+
recorded_at: Thu, 12 Mar 2015 21:38:14 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: "<DOCKER_HOST>/v1.16/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/json"
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ''
|
87
|
+
headers:
|
88
|
+
User-Agent:
|
89
|
+
- Swipely/Docker-API 1.20.0
|
90
|
+
Content-Type:
|
91
|
+
- text/plain
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message:
|
96
|
+
headers:
|
97
|
+
Content-Type:
|
98
|
+
- application/json
|
99
|
+
Date:
|
100
|
+
- Thu, 12 Mar 2015 21:38:12 GMT
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: |
|
104
|
+
{"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":"e9c7fced88fc","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","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:38:11.305651283Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/hosts","Id":"e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/dev-logs","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.103","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:267","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:67","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/e9c7fced88fc4a68c979f1f2c51519d6dde3fcde657a140daef0bbf3da652cbd/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11845,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:11.691920716Z"},"Volumes":{},"VolumesRW":{}}
|
105
|
+
http_version:
|
106
|
+
recorded_at: Thu, 12 Mar 2015 21:38:14 GMT
|
107
|
+
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:38:24 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:38:28 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:38:25 GMT
|
60
|
+
Content-Length:
|
61
|
+
- '90'
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: |
|
65
|
+
{"Id":"fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd","Warnings":null}
|
66
|
+
http_version:
|
67
|
+
recorded_at: Thu, 12 Mar 2015 21:38:28 GMT
|
68
|
+
- request:
|
69
|
+
method: post
|
70
|
+
uri: "<DOCKER_HOST>/v1.16/containers/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd/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:38:26 GMT
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: ''
|
89
|
+
http_version:
|
90
|
+
recorded_at: Thu, 12 Mar 2015 21:38:28 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:38:31 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":"fd1edf65d7dd","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:38:25.805754122Z","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/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd/hosts","Id":"fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/log-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.111","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:26f","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:6f","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11977,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:26.160188415Z"},"Volumes":{},"VolumesRW":{}}
|
115
|
+
http_version:
|
116
|
+
recorded_at: Thu, 12 Mar 2015 21:38:33 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: "<DOCKER_HOST>/v1.16/containers/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd/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:38:31 GMT
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: ''
|
138
|
+
http_version:
|
139
|
+
recorded_at: Thu, 12 Mar 2015 21:38:33 GMT
|
140
|
+
- request:
|
141
|
+
method: delete
|
142
|
+
uri: "<DOCKER_HOST>/v1.16/containers/fd1edf65d7dd5884772dc20c9e1f0e7a458759d6404f54239ced6ef75bad7ebd"
|
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:38:31 GMT
|
158
|
+
body:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: ''
|
161
|
+
http_version:
|
162
|
+
recorded_at: Thu, 12 Mar 2015 21:38:33 GMT
|
163
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,110 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HTTP>/"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: "/OK"
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- text/plain
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: |-
|
26
|
+
BUNDLE_APP_CONFIG=/usr/local/bundle
|
27
|
+
GEM_HOME=/usr/local/bundle
|
28
|
+
HOME=/root
|
29
|
+
HOSTNAME=2eb6219c5e61
|
30
|
+
NAME1=VALUE1A
|
31
|
+
NAME2=VALUE2
|
32
|
+
PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
33
|
+
PWD=/
|
34
|
+
RUBY_MAJOR=2.1
|
35
|
+
RUBY_VERSION=2.1.3
|
36
|
+
http_version:
|
37
|
+
recorded_at: Thu, 12 Mar 2015 21:38:43 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Swipely/Docker-API 1.20.0
|
47
|
+
Content-Type:
|
48
|
+
- text/plain
|
49
|
+
response:
|
50
|
+
status:
|
51
|
+
code: 200
|
52
|
+
message:
|
53
|
+
headers:
|
54
|
+
Content-Type:
|
55
|
+
- application/json
|
56
|
+
Date:
|
57
|
+
- Thu, 12 Mar 2015 21:38:41 GMT
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: |
|
61
|
+
{"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":["NAME1=VALUE1A","NAME2=VALUE2","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":"2eb6219c5e61","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","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:38:39.66276156Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"80/tcp":[{"HostIp":"","HostPort":"4567"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8/hosts","Id":"2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/profiles","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.116","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:274","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:74","PortMapping":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"4567"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":12072,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:40.08126477Z"},"Volumes":{},"VolumesRW":{}}
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 12 Mar 2015 21:38:43 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: "<DOCKER_HOST>/v1.16/containers/2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8/kill"
|
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: 204
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
Date:
|
81
|
+
- Thu, 12 Mar 2015 21:38:41 GMT
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: ''
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 12 Mar 2015 21:38:43 GMT
|
87
|
+
- request:
|
88
|
+
method: delete
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/2eb6219c5e61fcc00a7d76ee17d7f653afbe0f9ce986600c849caec3fa56a3f8"
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
User-Agent:
|
95
|
+
- Swipely/Docker-API 1.20.0
|
96
|
+
Content-Type:
|
97
|
+
- text/plain
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 204
|
101
|
+
message:
|
102
|
+
headers:
|
103
|
+
Date:
|
104
|
+
- Thu, 12 Mar 2015 21:38:41 GMT
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: ''
|
108
|
+
http_version:
|
109
|
+
recorded_at: Thu, 12 Mar 2015 21:38:43 GMT
|
110
|
+
recorded_with: VCR 2.9.3
|