bigrig 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/bigrig/runner.rb +2 -1
- data/lib/bigrig/version.rb +1 -1
- data/spec/bigrig_spec.rb +15 -0
- data/spec/data/wait_for_broken.json +9 -0
- data/spec/vcr/bigrig/run/spec/data/wait_for_broken_json/fails_with_an_error.yml +75 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_broken_json_fails_with_an_error.yml +427 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff7894ca684a15d01db2a127337a9d6b9f03163
|
4
|
+
data.tar.gz: a5618dbedda3832917b25d2199999dbee3a2acb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cfce1eac1a40854e7b9749c9653a666b10c23e638dee73a222a94550ed174b4915cc4986a928eaae302c60471fca008b99aeb725ba45fc95130076d9ec767d1
|
7
|
+
data.tar.gz: e3ed3dcd6b56049d8cf4a504e0790c4e3c3b97e89c0ebaa9ea09fe5d7245dc3505a153f4a2ed2490f8adb65913447948bd310685f16eda9cd5a715fac89b1792
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/bigrig/runner.rb
CHANGED
@@ -95,7 +95,8 @@ module Bigrig
|
|
95
95
|
def wait_for(container)
|
96
96
|
container[:wait_for].empty? && return
|
97
97
|
puts "Waiting for `#{container[:wait_for].join ' '}` to compelte on #{container[:name]}"
|
98
|
-
DockerAdapter.exec(container[:name], container[:wait_for])
|
98
|
+
result = DockerAdapter.exec(container[:name], container[:wait_for])
|
99
|
+
result[2] != 0 && fail("Error waiting for container: #{result.first.first}")
|
99
100
|
end
|
100
101
|
end
|
101
102
|
end
|
data/lib/bigrig/version.rb
CHANGED
data/spec/bigrig_spec.rb
CHANGED
@@ -230,6 +230,21 @@ describe 'bigrig' do
|
|
230
230
|
expect(result).to be 2
|
231
231
|
end
|
232
232
|
end
|
233
|
+
|
234
|
+
context 'spec/data/wait_for_broken.json' do
|
235
|
+
let(:command) { %(spec/support/bigrig_vcr "#{casette_name}" #{args.join ' '}) }
|
236
|
+
let(:args) { %w(-f spec/data/wait_for_broken.json run) }
|
237
|
+
let(:container) do
|
238
|
+
Docker::Container.get('wait_for_broken-test')
|
239
|
+
end
|
240
|
+
|
241
|
+
it 'fails with an error', :vcr do
|
242
|
+
pid, output = capture_stdout command
|
243
|
+
Process.kill :SIGINT, pid
|
244
|
+
Process.wait pid
|
245
|
+
expect(output).to match(/Error waiting for container/)
|
246
|
+
end
|
247
|
+
end
|
233
248
|
end
|
234
249
|
|
235
250
|
describe 'destroy' do
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-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
|
+
- Fri, 22 May 2015 18:08:57 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":["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":"21c3d18a9448","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Labels":{},"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-05-22T18:08:55.876421523Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":["51b96af06acc61a93bc465fb947ad8e4975e9f972f157457c064f453b486ec82"],"HostConfig":{"Binds":[],"CapAdd":null,"CapDrop":null,"CgroupParent":"","ContainerIDFile":"","CpuShares":0,"CpusetCpus":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LogConfig":{"Config":null,"Type":"json-file"},"LxcConf":null,"Memory":0,"MemorySwap":0,"NetworkMode":"","PidMode":"","PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"Ulimits":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hosts","Id":"21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","LogPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70-json.log","MountLabel":"","Name":"/wait_for_broken-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.225","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:e1","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:00:e1","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/resolv.conf","RestartCount":0,"State":{"Dead":false,"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":18255,"Restarting":false,"Running":true,"StartedAt":"2015-05-22T18:08:56.251478266Z"},"Volumes":{},"VolumesRW":{}}
|
27
|
+
http_version:
|
28
|
+
recorded_at: Fri, 22 May 2015 18:08:57 GMT
|
29
|
+
- request:
|
30
|
+
method: post
|
31
|
+
uri: "<DOCKER_HOST>/v1.16/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/kill"
|
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: 204
|
43
|
+
message:
|
44
|
+
headers:
|
45
|
+
Date:
|
46
|
+
- Fri, 22 May 2015 18:08:57 GMT
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: ''
|
50
|
+
http_version:
|
51
|
+
recorded_at: Fri, 22 May 2015 18:08:57 GMT
|
52
|
+
- request:
|
53
|
+
method: delete
|
54
|
+
uri: "<DOCKER_HOST>/v1.16/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70"
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Swipely/Docker-API 1.20.0
|
61
|
+
Content-Type:
|
62
|
+
- text/plain
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 204
|
66
|
+
message:
|
67
|
+
headers:
|
68
|
+
Date:
|
69
|
+
- Fri, 22 May 2015 18:08:58 GMT
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: ''
|
73
|
+
http_version:
|
74
|
+
recorded_at: Fri, 22 May 2015 18:08:58 GMT
|
75
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,427 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/hawknewton/show-env:0.0.1/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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '1887'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: |
|
28
|
+
{"Architecture":"amd64","Author":"","Comment":"","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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Labels":null,"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"d6d34d2bfd452f4175eab78597ddd29856f0af494d503b00f4160d5eb3f13f1b","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) ENTRYPOINT [/bin/sh -c ruby /code/server.rb]"],"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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Labels":null,"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-10-23T20:00:42.057514693Z","DockerVersion":"1.3.0","Id":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Os":"linux","Parent":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Size":0,"VirtualSize":801041825}
|
29
|
+
http_version:
|
30
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
31
|
+
- request:
|
32
|
+
method: get
|
33
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '33'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |
|
56
|
+
no such id: wait_for_broken-test
|
57
|
+
http_version:
|
58
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '33'
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: |
|
84
|
+
no such id: wait_for_broken-test
|
85
|
+
http_version:
|
86
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
107
|
+
Content-Length:
|
108
|
+
- '33'
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: |
|
112
|
+
no such id: wait_for_broken-test
|
113
|
+
http_version:
|
114
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
135
|
+
Content-Length:
|
136
|
+
- '33'
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |
|
140
|
+
no such id: wait_for_broken-test
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
163
|
+
Content-Length:
|
164
|
+
- '33'
|
165
|
+
body:
|
166
|
+
encoding: UTF-8
|
167
|
+
string: |
|
168
|
+
no such id: wait_for_broken-test
|
169
|
+
http_version:
|
170
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
171
|
+
- request:
|
172
|
+
method: get
|
173
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
191
|
+
Content-Length:
|
192
|
+
- '33'
|
193
|
+
body:
|
194
|
+
encoding: UTF-8
|
195
|
+
string: |
|
196
|
+
no such id: wait_for_broken-test
|
197
|
+
http_version:
|
198
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/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
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '33'
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: |
|
224
|
+
no such id: wait_for_broken-test
|
225
|
+
http_version:
|
226
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
227
|
+
- request:
|
228
|
+
method: get
|
229
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/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: 404
|
241
|
+
message:
|
242
|
+
headers:
|
243
|
+
Content-Type:
|
244
|
+
- text/plain; charset=utf-8
|
245
|
+
Date:
|
246
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
247
|
+
Content-Length:
|
248
|
+
- '33'
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: |
|
252
|
+
no such id: wait_for_broken-test
|
253
|
+
http_version:
|
254
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
255
|
+
- request:
|
256
|
+
method: post
|
257
|
+
uri: "<DOCKER_HOST>/v1.16/containers/create?name=wait_for_broken-test"
|
258
|
+
body:
|
259
|
+
encoding: UTF-8
|
260
|
+
string: '{"Env":[],"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","ExposedPorts":{}}'
|
261
|
+
headers:
|
262
|
+
User-Agent:
|
263
|
+
- Swipely/Docker-API 1.20.0
|
264
|
+
Content-Type:
|
265
|
+
- application/json
|
266
|
+
response:
|
267
|
+
status:
|
268
|
+
code: 201
|
269
|
+
message:
|
270
|
+
headers:
|
271
|
+
Content-Type:
|
272
|
+
- application/json
|
273
|
+
Date:
|
274
|
+
- Fri, 22 May 2015 18:08:55 GMT
|
275
|
+
Content-Length:
|
276
|
+
- '90'
|
277
|
+
body:
|
278
|
+
encoding: UTF-8
|
279
|
+
string: |
|
280
|
+
{"Id":"21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70","Warnings":null}
|
281
|
+
http_version:
|
282
|
+
recorded_at: Fri, 22 May 2015 18:08:55 GMT
|
283
|
+
- request:
|
284
|
+
method: post
|
285
|
+
uri: "<DOCKER_HOST>/v1.16/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/start"
|
286
|
+
body:
|
287
|
+
encoding: UTF-8
|
288
|
+
string: '{"Links":[],"ExtraHosts":[],"PortBindings":{},"VolumesFrom":[],"Binds":[]}'
|
289
|
+
headers:
|
290
|
+
User-Agent:
|
291
|
+
- Swipely/Docker-API 1.20.0
|
292
|
+
Content-Type:
|
293
|
+
- application/json
|
294
|
+
response:
|
295
|
+
status:
|
296
|
+
code: 204
|
297
|
+
message:
|
298
|
+
headers:
|
299
|
+
Date:
|
300
|
+
- Fri, 22 May 2015 18:08:56 GMT
|
301
|
+
body:
|
302
|
+
encoding: UTF-8
|
303
|
+
string: ''
|
304
|
+
http_version:
|
305
|
+
recorded_at: Fri, 22 May 2015 18:08:56 GMT
|
306
|
+
- request:
|
307
|
+
method: get
|
308
|
+
uri: "<DOCKER_HOST>/v1.16/containers/wait_for_broken-test/json"
|
309
|
+
body:
|
310
|
+
encoding: US-ASCII
|
311
|
+
string: ''
|
312
|
+
headers:
|
313
|
+
User-Agent:
|
314
|
+
- Swipely/Docker-API 1.20.0
|
315
|
+
Content-Type:
|
316
|
+
- text/plain
|
317
|
+
response:
|
318
|
+
status:
|
319
|
+
code: 200
|
320
|
+
message:
|
321
|
+
headers:
|
322
|
+
Content-Type:
|
323
|
+
- application/json
|
324
|
+
Date:
|
325
|
+
- Fri, 22 May 2015 18:08:56 GMT
|
326
|
+
body:
|
327
|
+
encoding: UTF-8
|
328
|
+
string: |
|
329
|
+
{"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":"21c3d18a9448","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Labels":{},"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-05-22T18:08:55.876421523Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":[],"CapAdd":null,"CapDrop":null,"CgroupParent":"","ContainerIDFile":"","CpuShares":0,"CpusetCpus":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LogConfig":{"Config":null,"Type":"json-file"},"LxcConf":null,"Memory":0,"MemorySwap":0,"NetworkMode":"","PidMode":"","PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"Ulimits":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hosts","Id":"21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","LogPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70-json.log","MountLabel":"","Name":"/wait_for_broken-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.225","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:e1","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:00:e1","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/resolv.conf","RestartCount":0,"State":{"Dead":false,"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":18255,"Restarting":false,"Running":true,"StartedAt":"2015-05-22T18:08:56.251478266Z"},"Volumes":{},"VolumesRW":{}}
|
330
|
+
http_version:
|
331
|
+
recorded_at: Fri, 22 May 2015 18:08:56 GMT
|
332
|
+
- request:
|
333
|
+
method: post
|
334
|
+
uri: "<DOCKER_HOST>/v1.16/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/exec"
|
335
|
+
body:
|
336
|
+
encoding: UTF-8
|
337
|
+
string: '{"AttachStdin":false,"AttachStdout":true,"AttachStderr":true,"Tty":false,"Cmd":["/i/do/not/exist"]}'
|
338
|
+
headers:
|
339
|
+
User-Agent:
|
340
|
+
- Swipely/Docker-API 1.20.0
|
341
|
+
Content-Type:
|
342
|
+
- application/json
|
343
|
+
response:
|
344
|
+
status:
|
345
|
+
code: 201
|
346
|
+
message:
|
347
|
+
headers:
|
348
|
+
Content-Type:
|
349
|
+
- application/json
|
350
|
+
Date:
|
351
|
+
- Fri, 22 May 2015 18:08:56 GMT
|
352
|
+
Content-Length:
|
353
|
+
- '74'
|
354
|
+
body:
|
355
|
+
encoding: UTF-8
|
356
|
+
string: |
|
357
|
+
{"Id":"51b96af06acc61a93bc465fb947ad8e4975e9f972f157457c064f453b486ec82"}
|
358
|
+
http_version:
|
359
|
+
recorded_at: Fri, 22 May 2015 18:08:56 GMT
|
360
|
+
- request:
|
361
|
+
method: post
|
362
|
+
uri: "<DOCKER_HOST>/v1.16/exec/51b96af06acc61a93bc465fb947ad8e4975e9f972f157457c064f453b486ec82/start"
|
363
|
+
body:
|
364
|
+
encoding: UTF-8
|
365
|
+
string: '{"Tty":false,"Detach":false}'
|
366
|
+
headers:
|
367
|
+
User-Agent:
|
368
|
+
- Swipely/Docker-API 1.20.0
|
369
|
+
Content-Type:
|
370
|
+
- application/json
|
371
|
+
response:
|
372
|
+
status:
|
373
|
+
code: 200
|
374
|
+
message:
|
375
|
+
headers:
|
376
|
+
Content-Type:
|
377
|
+
- application/vnd.docker.raw-stream
|
378
|
+
body:
|
379
|
+
encoding: UTF-8
|
380
|
+
string: !binary |-
|
381
|
+
AgAAAAAAAElleGVjOiAiL2kvZG8vbm90L2V4aXN0Ijogc3RhdCAvaS9kby9u
|
382
|
+
b3QvZXhpc3Q6IG5vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkKAgAAAAAAAQND
|
383
|
+
YW5ub3QgcnVuIGV4ZWMgY29tbWFuZCA1MWI5NmFmMDZhY2M2MWE5M2JjNDY1
|
384
|
+
ZmI5NDdhZDhlNDk3NWU5Zjk3MmYxNTc0NTdjMDY0ZjQ1M2I0ODZlYzgyIGlu
|
385
|
+
IGNvbnRhaW5lciAyMWMzZDE4YTk0NDgwNTU3OGRlODk4ZDY3YjFjNjk0YmI2
|
386
|
+
Yjc2MzVjN2FjNTIyZWE4ZjhiYmYxOTA3ODU0YTcwOiBbOF0gU3lzdGVtIGVy
|
387
|
+
cm9yOiBleGVjOiAiL2kvZG8vbm90L2V4aXN0Ijogc3RhdCAvaS9kby9ub3Qv
|
388
|
+
ZXhpc3Q6IG5vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkKAQAAAAAAAW5FcnJv
|
389
|
+
ciBzdGFydGluZyBleGVjIGNvbW1hbmQgaW4gY29udGFpbmVyIDUxYjk2YWYw
|
390
|
+
NmFjYzYxYTkzYmM0NjVmYjk0N2FkOGU0OTc1ZTlmOTcyZjE1NzQ1N2MwNjRm
|
391
|
+
NDUzYjQ4NmVjODI6IENhbm5vdCBydW4gZXhlYyBjb21tYW5kIDUxYjk2YWYw
|
392
|
+
NmFjYzYxYTkzYmM0NjVmYjk0N2FkOGU0OTc1ZTlmOTcyZjE1NzQ1N2MwNjRm
|
393
|
+
NDUzYjQ4NmVjODIgaW4gY29udGFpbmVyIDIxYzNkMThhOTQ0ODA1NTc4ZGU4
|
394
|
+
OThkNjdiMWM2OTRiYjZiNzYzNWM3YWM1MjJlYThmOGJiZjE5MDc4NTRhNzA6
|
395
|
+
IFs4XSBTeXN0ZW0gZXJyb3I6IGV4ZWM6ICIvaS9kby9ub3QvZXhpc3QiOiBz
|
396
|
+
dGF0IC9pL2RvL25vdC9leGlzdDogbm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9y
|
397
|
+
eQo=
|
398
|
+
http_version:
|
399
|
+
recorded_at: Fri, 22 May 2015 18:08:56 GMT
|
400
|
+
- request:
|
401
|
+
method: get
|
402
|
+
uri: "<DOCKER_HOST>/v1.16/exec/51b96af06acc61a93bc465fb947ad8e4975e9f972f157457c064f453b486ec82/json"
|
403
|
+
body:
|
404
|
+
encoding: US-ASCII
|
405
|
+
string: ''
|
406
|
+
headers:
|
407
|
+
User-Agent:
|
408
|
+
- Swipely/Docker-API 1.20.0
|
409
|
+
Content-Type:
|
410
|
+
- text/plain
|
411
|
+
response:
|
412
|
+
status:
|
413
|
+
code: 200
|
414
|
+
message:
|
415
|
+
headers:
|
416
|
+
Content-Type:
|
417
|
+
- application/json
|
418
|
+
Date:
|
419
|
+
- Fri, 22 May 2015 18:08:56 GMT
|
420
|
+
body:
|
421
|
+
encoding: UTF-8
|
422
|
+
string: '{"ID":"51b96af06acc61a93bc465fb947ad8e4975e9f972f157457c064f453b486ec82","Running":false,"ExitCode":-1,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"/i/do/not/exist","arguments":[]},"OpenStdin":false,"OpenStderr":true,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":18255,"ExitCode":0,"Error":"","StartedAt":"2015-05-22T18:08:56.251478266Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70","Created":"2015-05-22T18:08:55.876421523Z","Path":"/bin/sh","Args":["-c","ruby
|
423
|
+
/code/server.rb"],"Config":{"Hostname":"21c3d18a9448","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":{"80/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"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"],"Cmd":null,"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Volumes":null,"WorkingDir":"","Entrypoint":["/bin/sh","-c","ruby
|
424
|
+
/code/server.rb"],"NetworkDisabled":false,"MacAddress":"","OnBuild":null,"Labels":{}},"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","NetworkSettings":{"IPAddress":"172.17.0.225","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:e1","LinkLocalIPv6Address":"fe80::42:acff:fe11:e1","LinkLocalIPv6PrefixLen":64,"GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"Gateway":"172.17.42.1","IPv6Gateway":"","Bridge":"docker0","PortMapping":null,"Ports":{"80/tcp":null}},"ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/hosts","LogPath":"/mnt/sda1/var/lib/docker/containers/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70/21c3d18a944805578de898d67b1c694bb6b7635c7ac522ea8f8bbf1907854a70-json.log","Name":"/wait_for_broken-test","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"UpdateDns":false,"Volumes":{},"VolumesRW":{},"AppliedVolumesFrom":null}}'
|
425
|
+
http_version:
|
426
|
+
recorded_at: Fri, 22 May 2015 18:08:56 GMT
|
427
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigrig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hawk Newton
|
@@ -259,6 +259,7 @@ files:
|
|
259
259
|
- spec/data/volumes.json
|
260
260
|
- spec/data/volumes_from.json
|
261
261
|
- spec/data/wait_for.json
|
262
|
+
- spec/data/wait_for_broken.json
|
262
263
|
- spec/spec_helper.rb
|
263
264
|
- spec/support/bigrig_vcr
|
264
265
|
- spec/support/vcr.rb
|
@@ -319,6 +320,7 @@ files:
|
|
319
320
|
- spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml
|
320
321
|
- spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml
|
321
322
|
- spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml
|
323
|
+
- spec/vcr/bigrig/run/spec/data/wait_for_broken_json/fails_with_an_error.yml
|
322
324
|
- spec/vcr/bigrig/run/spec/data/wait_for_json/waits_for_wait_for.yml
|
323
325
|
- spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml
|
324
326
|
- spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml
|
@@ -335,6 +337,7 @@ files:
|
|
335
337
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml
|
336
338
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml
|
337
339
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml
|
340
|
+
- spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_broken_json_fails_with_an_error.yml
|
338
341
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_json_waits_for_wait_for.yml
|
339
342
|
- spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml
|
340
343
|
- spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml
|