bigrig 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +5 -1
- data/README.md +1 -0
- data/bigrig.gemspec +1 -0
- data/lib/bigrig/actions/dev_action.rb +56 -1
- data/lib/bigrig/actions/log_action.rb +2 -33
- data/lib/bigrig/actions/run_action.rb +1 -1
- data/lib/bigrig/dependency_graph.rb +16 -2
- data/lib/bigrig/log_tailer.rb +56 -0
- data/lib/bigrig/models/container.rb +3 -2
- data/lib/bigrig/runner.rb +14 -12
- data/lib/bigrig/version.rb +1 -1
- data/lib/bigrig.rb +1 -0
- data/spec/bigrig/actions/dev_action_spec.rb +1 -1
- data/spec/bigrig/actions/log_action_spec.rb +5 -1
- data/spec/bigrig/dependency_graph_spec.rb +22 -1
- data/spec/bigrig/log_tailer_spec.rb +24 -0
- data/spec/bigrig/models/container_spec.rb +10 -1
- data/spec/bigrig_spec.rb +55 -4
- data/spec/data/scan.json +18 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/support/vcr.rb +1 -0
- data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +129 -17
- data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +270 -18
- data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +362 -30
- data/spec/vcr/bigrig/dev/spec/data/scan_json/leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +527 -0
- data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_dependant_containers_when_the_scanned_file_changes.yml +501 -0
- data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_the_container_when_the_scanned_file_changes.yml +607 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +311 -113
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +305 -107
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +2127 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_dependant_containers_when_the_scanned_file_changes.yml +2127 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_the_container_when_the_scanned_file_changes.yml +2863 -0
- metadata +25 -2
@@ -0,0 +1,501 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:17 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '28'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: |
|
28
|
+
No such container: scanning
|
29
|
+
http_version:
|
30
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
31
|
+
- request:
|
32
|
+
method: get
|
33
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:17 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '28'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |
|
56
|
+
No such container: scanning
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:17 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '28'
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: |
|
84
|
+
No such container: scanning
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:17 GMT
|
107
|
+
Content-Length:
|
108
|
+
- '28'
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: |
|
112
|
+
No such container: scanning
|
113
|
+
http_version:
|
114
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:18 GMT
|
135
|
+
Content-Length:
|
136
|
+
- '28'
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |
|
140
|
+
No such container: scanning
|
141
|
+
http_version:
|
142
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:18 GMT
|
163
|
+
Content-Length:
|
164
|
+
- '28'
|
165
|
+
body:
|
166
|
+
encoding: UTF-8
|
167
|
+
string: |
|
168
|
+
No such container: scanning
|
169
|
+
http_version:
|
170
|
+
recorded_at: Thu, 09 Apr 2015 18:58:20 GMT
|
171
|
+
- request:
|
172
|
+
method: get
|
173
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:18 GMT
|
191
|
+
Content-Length:
|
192
|
+
- '28'
|
193
|
+
body:
|
194
|
+
encoding: UTF-8
|
195
|
+
string: |
|
196
|
+
No such container: scanning
|
197
|
+
http_version:
|
198
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/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, 09 Apr 2015 18:58:18 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '28'
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: |
|
224
|
+
No such container: scanning
|
225
|
+
http_version:
|
226
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
227
|
+
- request:
|
228
|
+
method: get
|
229
|
+
uri: "<DOCKER_HOST>/v1.16/containers/scanning/json"
|
230
|
+
body:
|
231
|
+
encoding: US-ASCII
|
232
|
+
string: ''
|
233
|
+
headers:
|
234
|
+
User-Agent:
|
235
|
+
- Swipely/Docker-API 1.20.0
|
236
|
+
Content-Type:
|
237
|
+
- text/plain
|
238
|
+
response:
|
239
|
+
status:
|
240
|
+
code: 200
|
241
|
+
message:
|
242
|
+
headers:
|
243
|
+
Content-Type:
|
244
|
+
- application/json
|
245
|
+
Date:
|
246
|
+
- Thu, 09 Apr 2015 18:58:18 GMT
|
247
|
+
body:
|
248
|
+
encoding: UTF-8
|
249
|
+
string: |
|
250
|
+
{"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":"49a1cde679b0","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-04-09T18:58:18.653838516Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":[],"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/49a1cde679b05f9acd7f46b907473f9d656b6330278d337dadd6715eb01f7c8e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/49a1cde679b05f9acd7f46b907473f9d656b6330278d337dadd6715eb01f7c8e/hosts","Id":"49a1cde679b05f9acd7f46b907473f9d656b6330278d337dadd6715eb01f7c8e","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/scanning","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.3.135","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:387","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:03:87","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/49a1cde679b05f9acd7f46b907473f9d656b6330278d337dadd6715eb01f7c8e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":29039,"Restarting":false,"Running":true,"StartedAt":"2015-04-09T18:58:18.969268761Z"},"Volumes":{},"VolumesRW":{}}
|
251
|
+
http_version:
|
252
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
253
|
+
- request:
|
254
|
+
method: get
|
255
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
256
|
+
body:
|
257
|
+
encoding: US-ASCII
|
258
|
+
string: ''
|
259
|
+
headers:
|
260
|
+
User-Agent:
|
261
|
+
- Swipely/Docker-API 1.20.0
|
262
|
+
Content-Type:
|
263
|
+
- text/plain
|
264
|
+
response:
|
265
|
+
status:
|
266
|
+
code: 404
|
267
|
+
message:
|
268
|
+
headers:
|
269
|
+
Content-Type:
|
270
|
+
- text/plain; charset=utf-8
|
271
|
+
Date:
|
272
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
273
|
+
Content-Length:
|
274
|
+
- '33'
|
275
|
+
body:
|
276
|
+
encoding: UTF-8
|
277
|
+
string: |
|
278
|
+
No such container: uses_scanning
|
279
|
+
http_version:
|
280
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
281
|
+
- request:
|
282
|
+
method: get
|
283
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
284
|
+
body:
|
285
|
+
encoding: US-ASCII
|
286
|
+
string: ''
|
287
|
+
headers:
|
288
|
+
User-Agent:
|
289
|
+
- Swipely/Docker-API 1.20.0
|
290
|
+
Content-Type:
|
291
|
+
- text/plain
|
292
|
+
response:
|
293
|
+
status:
|
294
|
+
code: 404
|
295
|
+
message:
|
296
|
+
headers:
|
297
|
+
Content-Type:
|
298
|
+
- text/plain; charset=utf-8
|
299
|
+
Date:
|
300
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
301
|
+
Content-Length:
|
302
|
+
- '33'
|
303
|
+
body:
|
304
|
+
encoding: UTF-8
|
305
|
+
string: |
|
306
|
+
No such container: uses_scanning
|
307
|
+
http_version:
|
308
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
309
|
+
- request:
|
310
|
+
method: get
|
311
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
312
|
+
body:
|
313
|
+
encoding: US-ASCII
|
314
|
+
string: ''
|
315
|
+
headers:
|
316
|
+
User-Agent:
|
317
|
+
- Swipely/Docker-API 1.20.0
|
318
|
+
Content-Type:
|
319
|
+
- text/plain
|
320
|
+
response:
|
321
|
+
status:
|
322
|
+
code: 404
|
323
|
+
message:
|
324
|
+
headers:
|
325
|
+
Content-Type:
|
326
|
+
- text/plain; charset=utf-8
|
327
|
+
Date:
|
328
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
329
|
+
Content-Length:
|
330
|
+
- '33'
|
331
|
+
body:
|
332
|
+
encoding: UTF-8
|
333
|
+
string: |
|
334
|
+
No such container: uses_scanning
|
335
|
+
http_version:
|
336
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
337
|
+
- request:
|
338
|
+
method: get
|
339
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
340
|
+
body:
|
341
|
+
encoding: US-ASCII
|
342
|
+
string: ''
|
343
|
+
headers:
|
344
|
+
User-Agent:
|
345
|
+
- Swipely/Docker-API 1.20.0
|
346
|
+
Content-Type:
|
347
|
+
- text/plain
|
348
|
+
response:
|
349
|
+
status:
|
350
|
+
code: 404
|
351
|
+
message:
|
352
|
+
headers:
|
353
|
+
Content-Type:
|
354
|
+
- text/plain; charset=utf-8
|
355
|
+
Date:
|
356
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
357
|
+
Content-Length:
|
358
|
+
- '33'
|
359
|
+
body:
|
360
|
+
encoding: UTF-8
|
361
|
+
string: |
|
362
|
+
No such container: uses_scanning
|
363
|
+
http_version:
|
364
|
+
recorded_at: Thu, 09 Apr 2015 18:58:21 GMT
|
365
|
+
- request:
|
366
|
+
method: get
|
367
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
368
|
+
body:
|
369
|
+
encoding: US-ASCII
|
370
|
+
string: ''
|
371
|
+
headers:
|
372
|
+
User-Agent:
|
373
|
+
- Swipely/Docker-API 1.20.0
|
374
|
+
Content-Type:
|
375
|
+
- text/plain
|
376
|
+
response:
|
377
|
+
status:
|
378
|
+
code: 200
|
379
|
+
message:
|
380
|
+
headers:
|
381
|
+
Content-Type:
|
382
|
+
- application/json
|
383
|
+
Date:
|
384
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
385
|
+
Content-Length:
|
386
|
+
- '1798'
|
387
|
+
body:
|
388
|
+
encoding: UTF-8
|
389
|
+
string: |
|
390
|
+
{"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":"85110d52e2b9","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-04-09T18:58:19.651967323Z","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":"","HostsPath":"","Id":"85110d52e2b958919a1ebfbfdd82c8f84172bf0bdcc55d1046c50f8301345db1","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/uses_scanning","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":null,"VolumesRW":null}
|
391
|
+
http_version:
|
392
|
+
recorded_at: Thu, 09 Apr 2015 18:58:22 GMT
|
393
|
+
- request:
|
394
|
+
method: get
|
395
|
+
uri: "<DOCKER_HOST>/v1.16/containers/some_ahole/json"
|
396
|
+
body:
|
397
|
+
encoding: US-ASCII
|
398
|
+
string: ''
|
399
|
+
headers:
|
400
|
+
User-Agent:
|
401
|
+
- Swipely/Docker-API 1.20.0
|
402
|
+
Content-Type:
|
403
|
+
- text/plain
|
404
|
+
response:
|
405
|
+
status:
|
406
|
+
code: 200
|
407
|
+
message:
|
408
|
+
headers:
|
409
|
+
Content-Type:
|
410
|
+
- application/json
|
411
|
+
Date:
|
412
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
413
|
+
Content-Length:
|
414
|
+
- '1795'
|
415
|
+
body:
|
416
|
+
encoding: UTF-8
|
417
|
+
string: |
|
418
|
+
{"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":"7cabdfe7e457","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-04-09T18:58:19.644706964Z","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":"","HostsPath":"","Id":"7cabdfe7e457c21b63b84644295a968912d3c676f553e2a769a295481acd0c11","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/some_ahole","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":null,"VolumesRW":null}
|
419
|
+
http_version:
|
420
|
+
recorded_at: Thu, 09 Apr 2015 18:58:22 GMT
|
421
|
+
- request:
|
422
|
+
method: get
|
423
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
424
|
+
body:
|
425
|
+
encoding: US-ASCII
|
426
|
+
string: ''
|
427
|
+
headers:
|
428
|
+
User-Agent:
|
429
|
+
- Swipely/Docker-API 1.20.0
|
430
|
+
Content-Type:
|
431
|
+
- text/plain
|
432
|
+
response:
|
433
|
+
status:
|
434
|
+
code: 200
|
435
|
+
message:
|
436
|
+
headers:
|
437
|
+
Content-Type:
|
438
|
+
- application/json
|
439
|
+
Date:
|
440
|
+
- Thu, 09 Apr 2015 18:58:19 GMT
|
441
|
+
Content-Length:
|
442
|
+
- '1798'
|
443
|
+
body:
|
444
|
+
encoding: UTF-8
|
445
|
+
string: |
|
446
|
+
{"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":"85110d52e2b9","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-04-09T18:58:19.651967323Z","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":"","HostsPath":"","Id":"85110d52e2b958919a1ebfbfdd82c8f84172bf0bdcc55d1046c50f8301345db1","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/uses_scanning","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":null,"VolumesRW":null}
|
447
|
+
http_version:
|
448
|
+
recorded_at: Thu, 09 Apr 2015 18:58:22 GMT
|
449
|
+
- request:
|
450
|
+
method: get
|
451
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
452
|
+
body:
|
453
|
+
encoding: US-ASCII
|
454
|
+
string: ''
|
455
|
+
headers:
|
456
|
+
User-Agent:
|
457
|
+
- Swipely/Docker-API 1.20.0
|
458
|
+
Content-Type:
|
459
|
+
- text/plain
|
460
|
+
response:
|
461
|
+
status:
|
462
|
+
code: 200
|
463
|
+
message:
|
464
|
+
headers:
|
465
|
+
Content-Type:
|
466
|
+
- application/json
|
467
|
+
Date:
|
468
|
+
- Thu, 09 Apr 2015 18:58:22 GMT
|
469
|
+
body:
|
470
|
+
encoding: UTF-8
|
471
|
+
string: |
|
472
|
+
{"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":"1f9cba6e9ea9","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-04-09T18:58:21.943948735Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":[],"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":["/scanning:/uses_scanning/scanning"],"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/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/hosts","Id":"1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/uses_scanning","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.3.139","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:38b","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:03:8b","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":29098,"Restarting":false,"Running":true,"StartedAt":"2015-04-09T18:58:22.28989111Z"},"Volumes":{},"VolumesRW":{}}
|
473
|
+
http_version:
|
474
|
+
recorded_at: Thu, 09 Apr 2015 18:58:25 GMT
|
475
|
+
- request:
|
476
|
+
method: get
|
477
|
+
uri: "<DOCKER_HOST>/v1.16/containers/uses_scanning/json"
|
478
|
+
body:
|
479
|
+
encoding: US-ASCII
|
480
|
+
string: ''
|
481
|
+
headers:
|
482
|
+
User-Agent:
|
483
|
+
- Swipely/Docker-API 1.20.0
|
484
|
+
Content-Type:
|
485
|
+
- text/plain
|
486
|
+
response:
|
487
|
+
status:
|
488
|
+
code: 200
|
489
|
+
message:
|
490
|
+
headers:
|
491
|
+
Content-Type:
|
492
|
+
- application/json
|
493
|
+
Date:
|
494
|
+
- Thu, 09 Apr 2015 18:58:22 GMT
|
495
|
+
body:
|
496
|
+
encoding: UTF-8
|
497
|
+
string: |
|
498
|
+
{"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":"1f9cba6e9ea9","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-04-09T18:58:21.943948735Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":[],"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":["/scanning:/uses_scanning/scanning"],"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/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/hosts","Id":"1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816","Image":"bf0f8a45f956aa470ab3c916c83925fdcffce23d37b1a9e33998561ce54ca030","MountLabel":"","Name":"/uses_scanning","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.3.139","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:38b","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:03:8b","PortMapping":null,"Ports":{}},"Path":"/run.sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/1f9cba6e9ea95d259f390f49c2bfe3734de6fac8c37bd0a82b9d443adae34816/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":29098,"Restarting":false,"Running":true,"StartedAt":"2015-04-09T18:58:22.28989111Z"},"Volumes":{},"VolumesRW":{}}
|
499
|
+
http_version:
|
500
|
+
recorded_at: Thu, 09 Apr 2015 18:58:25 GMT
|
501
|
+
recorded_with: VCR 2.9.3
|