docker-api 1.7.3 → 1.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -122,7 +122,10 @@ class Docker::Container
122
122
  # Create a new Container.
123
123
  def self.create(opts = {}, conn = Docker.connection)
124
124
  instance = new(conn)
125
- resp = conn.post('/containers/create', {}, :body => opts.to_json)
125
+ name = opts.delete('name')
126
+ query = {}
127
+ query['name'] = name if name
128
+ resp = conn.post('/containers/create', query, :body => opts.to_json)
126
129
  if (instance.id = Docker::Util.parse_json(resp)['Id']).nil?
127
130
  raise UnexpectedResponseError, 'Create response did not contain an Id'
128
131
  else
data/lib/docker/image.rb CHANGED
@@ -34,10 +34,16 @@ class Docker::Image
34
34
 
35
35
  # Push the Image to the Docker registry.
36
36
  def push(creds = nil, options = {})
37
+ repository = self.info['Repository']
38
+ unless repository
39
+ raise ArgumentError
40
+ "Image does not have a name to push, got: #{repository}."
41
+ end
42
+
37
43
  credentials = (creds.nil?) ? Docker.creds : creds.to_json
38
44
  headers = Docker::Util.build_auth_header(credentials)
39
45
  connection.post(
40
- path_for(:push),
46
+ "/images/#{repository}/push",
41
47
  options,
42
48
  :headers => headers
43
49
  )
@@ -72,7 +78,7 @@ class Docker::Image
72
78
  file_hash['Dockerfile'] = dockerfile_for(file_hash, output_path)
73
79
 
74
80
  tar = Docker::Util.create_tar(file_hash)
75
- body = connection.post('/build', {}, :body => tar)
81
+ body = connection.post('/build', opts, :body => tar)
76
82
  self.class.send(:new, connection, Docker::Util.extract_id(body))
77
83
  end
78
84
 
data/lib/docker/util.rb CHANGED
@@ -32,12 +32,12 @@ module Docker::Util
32
32
  end
33
33
 
34
34
  def extract_id(body)
35
- line = body.lines.to_a[-1]
36
- if (id = line.match(/^Successfully built ([a-f0-9]+)$/)) && !id[1].empty?
37
- id[1]
38
- else
39
- raise UnexpectedResponseError, "Couldn't find id: #{body}"
35
+ body.lines.to_a.reverse.each do |line|
36
+ if (id = line.match(/Successfully built ([a-f0-9]+)/)) && !id[1].empty?
37
+ return id[1]
38
+ end
40
39
  end
40
+ raise UnexpectedResponseError, "Couldn't find id: #{body}"
41
41
  end
42
42
 
43
43
  # Convenience method to get the file hash corresponding to an array of
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.7.3'
3
+ VERSION = '1.7.4'
4
4
 
5
5
  # The version of the compatible Docker remote API.
6
6
  API_VERSION = '1.6'
@@ -31,6 +31,20 @@ describe Docker::Container do
31
31
  end
32
32
  end
33
33
 
34
+ describe '#create' do
35
+ subject {
36
+ described_class.create({'Cmd' => %w[true], 'Image' => 'base'}.merge(opts))
37
+ }
38
+
39
+ context 'when creating a container named bob' do
40
+ let(:opts) { {"name" => "bob"} }
41
+
42
+ it 'should have name set to bob', :vcr do
43
+ subject.json["Name"].should == "/bob"
44
+ end
45
+ end
46
+ end
47
+
34
48
  describe '#changes' do
35
49
  subject {
36
50
  described_class.create('Cmd' => %w[rm -rf /root], 'Image' => 'base')
@@ -44,8 +44,11 @@ describe Docker::Image do
44
44
  describe '#insert_local' do
45
45
  subject { described_class.build('from base') }
46
46
 
47
+ let(:rm) { false }
47
48
  let(:new_image) {
48
- subject.insert_local('localPath' => file, 'outputPath' => '/')
49
+ opts = {'localPath' => file, 'outputPath' => '/'}
50
+ opts[:rm] = true if rm
51
+ subject.insert_local(opts)
49
52
  }
50
53
 
51
54
  context 'when the local file does not exist' do
@@ -81,6 +84,22 @@ describe Docker::Image do
81
84
  expect(response).to eq([[gemfile, rakefile],[]])
82
85
  end
83
86
  end
87
+
88
+ context 'when removing intermediate containers' do
89
+ let(:rm) { true }
90
+ let(:file) { './Gemfile' }
91
+
92
+ it 'leave no intermediate containers', :vcr do
93
+ expect { new_image }.to change {
94
+ Docker::Container.all(:all => true).count
95
+ }.by 0
96
+ end
97
+
98
+ it 'creates a new image', :vcr do
99
+ expect{new_image}.to change{Docker::Image.all.count}.by 1
100
+ end
101
+
102
+ end
84
103
  end
85
104
 
86
105
  describe '#push' do
@@ -99,8 +118,12 @@ describe Docker::Image do
99
118
  let(:container) {
100
119
  base_image.run('true')
101
120
  }
121
+ let(:repo_name) { 'test/base' }
102
122
  let(:new_image) {
103
- container.commit('repo' => 'test/base')
123
+ container.commit('repo' => repo_name)
124
+ Docker::Image.all.select { |image|
125
+ image.info['Repository'] == repo_name
126
+ }.first
104
127
  }
105
128
 
106
129
  it 'pushes the Image', :vcr do
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: unix:///var/run/docker.sock/v1.6/containers/create?name=bob
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Cmd":["true"],"Image":"base"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.7.3
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Mon, 02 Dec 2013 23:14:48 GMT
23
+ Content-Length:
24
+ - '73'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '{"Id":"81a582695592acd1d15e9990c332e579837bdac0f75a6055ca81cbfde88d69a3"}'
28
+ http_version:
29
+ recorded_at: Mon, 02 Dec 2013 23:14:48 GMT
30
+ - request:
31
+ method: get
32
+ uri: unix:///var/run/docker.sock/v1.6/containers/81a582695592acd1d15e9990c332e579837bdac0f75a6055ca81cbfde88d69a3/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ User-Agent:
38
+ - Swipely/Docker-API 1.7.3
39
+ Content-Type:
40
+ - text/plain
41
+ response:
42
+ status:
43
+ code: 200
44
+ message:
45
+ headers:
46
+ Content-Type:
47
+ - application/json
48
+ Date:
49
+ - Mon, 02 Dec 2013 23:14:48 GMT
50
+ Content-Length:
51
+ - '1010'
52
+ body:
53
+ encoding: UTF-8
54
+ string: '{"ID":"81a582695592acd1d15e9990c332e579837bdac0f75a6055ca81cbfde88d69a3","Created":"2013-12-02T23:14:48.694921809Z","Path":"true","Args":[],"Config":{"Hostname":"81a582695592","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["true"],"Dns":null,"Image":"base","Volumes":null,"VolumesFrom":"","WorkingDir":"","Entrypoint":null,"NetworkDisabled":false},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z","Ghost":false},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null,"Ports":null},"SysInitPath":"/usr/bin/docker","ResolvConfPath":"/etc/resolv.conf","HostnamePath":"","HostsPath":"","Name":"/bob","Driver":"aufs","Volumes":null,"VolumesRW":null}'
55
+ http_version:
56
+ recorded_at: Mon, 02 Dec 2013 23:14:48 GMT
57
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,235 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: unix:///var/run/docker.sock/v1.6/images/json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.7.3
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
+ - Mon, 02 Dec 2013 22:52:16 GMT
23
+ Content-Length:
24
+ - '892'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '[{"Repository":"\u003cnone\u003e","Tag":"\u003cnone\u003e","Id":"f827699f8193451c12b9b5336e2e6e7d2f45555615c26240713c899d1b04a3c4","Created":1386024736,"Size":38,"VirtualSize":350613981},{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943}]'
28
+ http_version:
29
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
30
+ - request:
31
+ method: post
32
+ uri: unix:///var/run/docker.sock/v1.6/build
33
+ body:
34
+ encoding: ISO-8859-1
35
+ string: !binary |-
36
+ RG9ja2VyZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
37
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
38
+ AAAAAAAAAAAAADAwMDA2NDAAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDEx
39
+ ADEyMjQ3MjA3NDQwADAxMzI3NgAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
40
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
41
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMHdoZWVs
42
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd2hlZWwAAAAAAAAAAAAAAAAA
43
+ AAAAAAAAAAAAAAAAAAAwMDAwMDAwADAwMDAwMDAAAAAAAAAAAAAAAAAAAAAA
44
+ AAAAAAAAAA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AAAAAAAAAAAAAAAA
76
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
77
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
78
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
79
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
80
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
81
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
82
+ headers:
83
+ User-Agent:
84
+ - Swipely/Docker-API 1.7.3
85
+ Content-Type:
86
+ - application/json
87
+ response:
88
+ status:
89
+ code: 200
90
+ message:
91
+ headers:
92
+ Date:
93
+ - Mon, 02 Dec 2013 22:52:16 GMT
94
+ Content-Type:
95
+ - text/plain; charset=utf-8
96
+ Transfer-Encoding:
97
+ - ''
98
+ body:
99
+ encoding: UTF-8
100
+ string: |
101
+ Step 1 : FROM base
102
+ ---> b750fe79269d
103
+ Successfully built b750fe79269d
104
+ http_version:
105
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
106
+ - request:
107
+ method: post
108
+ uri: unix:///var/run/docker.sock/v1.6/build?rm=true
109
+ body:
110
+ encoding: ISO-8859-1
111
+ string: !binary |-
112
+ R2VtZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
113
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
114
+ AAAAAAAAAAAAADAwMDA2NDAAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDQ2
115
+ ADEyMjQ3MjA3NDQwADAxMjYwNwAgMAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAA
179
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
180
+ AAAAAAAAAAAAAAAA
181
+ headers:
182
+ User-Agent:
183
+ - Swipely/Docker-API 1.7.3
184
+ Content-Type:
185
+ - application/json
186
+ response:
187
+ status:
188
+ code: 200
189
+ message:
190
+ headers:
191
+ Date:
192
+ - Mon, 02 Dec 2013 22:52:16 GMT
193
+ Content-Type:
194
+ - text/plain; charset=utf-8
195
+ Transfer-Encoding:
196
+ - ''
197
+ body:
198
+ encoding: UTF-8
199
+ string: |
200
+ Step 1 : FROM b750fe79269d
201
+ ---> b750fe79269d
202
+ Step 2 : ADD Gemfile /
203
+ ---> b6d4953f5d39
204
+ Successfully built b6d4953f5d39
205
+ Removing intermediate container 477f2042f61f
206
+ http_version:
207
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
208
+ - request:
209
+ method: get
210
+ uri: unix:///var/run/docker.sock/v1.6/images/json
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
214
+ headers:
215
+ User-Agent:
216
+ - Swipely/Docker-API 1.7.3
217
+ Content-Type:
218
+ - text/plain
219
+ response:
220
+ status:
221
+ code: 200
222
+ message:
223
+ headers:
224
+ Content-Type:
225
+ - application/json
226
+ Date:
227
+ - Mon, 02 Dec 2013 22:52:16 GMT
228
+ Content-Length:
229
+ - '1078'
230
+ body:
231
+ encoding: UTF-8
232
+ string: '[{"Repository":"\u003cnone\u003e","Tag":"\u003cnone\u003e","Id":"b6d4953f5d39327f104275b07bb42739fc871224648b123b0780983f63dc3854","Created":1386024736,"Size":38,"VirtualSize":350613981},{"Repository":"\u003cnone\u003e","Tag":"\u003cnone\u003e","Id":"f827699f8193451c12b9b5336e2e6e7d2f45555615c26240713c899d1b04a3c4","Created":1386024736,"Size":38,"VirtualSize":350613981},{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":175306985,"VirtualSize":350613943}]'
233
+ http_version:
234
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
235
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,235 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.7.3
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
+ - Mon, 02 Dec 2013 22:52:16 GMT
23
+ Content-Length:
24
+ - '2'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '[]'
28
+ http_version:
29
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
30
+ - request:
31
+ method: post
32
+ uri: unix:///var/run/docker.sock/v1.6/build
33
+ body:
34
+ encoding: ISO-8859-1
35
+ string: !binary |-
36
+ RG9ja2VyZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
37
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
38
+ AAAAAAAAAAAAADAwMDA2NDAAMDAwMDAwMAAw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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
71
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
72
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
73
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
74
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
75
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
76
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
77
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
78
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
79
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
80
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
81
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
82
+ headers:
83
+ User-Agent:
84
+ - Swipely/Docker-API 1.7.3
85
+ Content-Type:
86
+ - application/json
87
+ response:
88
+ status:
89
+ code: 200
90
+ message:
91
+ headers:
92
+ Date:
93
+ - Mon, 02 Dec 2013 22:52:16 GMT
94
+ Content-Type:
95
+ - text/plain; charset=utf-8
96
+ Transfer-Encoding:
97
+ - ''
98
+ body:
99
+ encoding: UTF-8
100
+ string: |
101
+ Step 1 : FROM base
102
+ ---> b750fe79269d
103
+ Successfully built b750fe79269d
104
+ http_version:
105
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
106
+ - request:
107
+ method: post
108
+ uri: unix:///var/run/docker.sock/v1.6/build?rm=true
109
+ body:
110
+ encoding: ISO-8859-1
111
+ string: !binary |-
112
+ R2VtZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
113
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
114
+ AAAAAAAAAAAAADAwMDA2NDAAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDQ2
115
+ ADEyMjQ3MjA3NDQwADAxMjYwNwAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
116
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
117
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMHdoZWVs
118
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd2hlZWwAAAAAAAAAAAAAAAAA
119
+ AAAAAAAAAAAAAAAAAAAwMDAwMDAwADAwMDAwMDAAAAAAAAAAAAAAAAAAAAAA
120
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
121
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
122
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
123
+ AAAAAAAAAAAAAAAAAAAAAABzb3VyY2UgJ2h0dHA6Ly9ydWJ5Z2Vtcy5vcmcn
124
+ CgpnZW1zcGVjCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
125
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
126
+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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
174
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
175
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
176
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
177
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
178
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
179
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
180
+ AAAAAAAAAAAAAAAA
181
+ headers:
182
+ User-Agent:
183
+ - Swipely/Docker-API 1.7.3
184
+ Content-Type:
185
+ - application/json
186
+ response:
187
+ status:
188
+ code: 200
189
+ message:
190
+ headers:
191
+ Date:
192
+ - Mon, 02 Dec 2013 22:52:16 GMT
193
+ Content-Type:
194
+ - text/plain; charset=utf-8
195
+ Transfer-Encoding:
196
+ - ''
197
+ body:
198
+ encoding: UTF-8
199
+ string: |
200
+ Step 1 : FROM b750fe79269d
201
+ ---> b750fe79269d
202
+ Step 2 : ADD Gemfile /
203
+ ---> f827699f8193
204
+ Successfully built f827699f8193
205
+ Removing intermediate container daea0ad2dd0c
206
+ http_version:
207
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
208
+ - request:
209
+ method: get
210
+ uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
214
+ headers:
215
+ User-Agent:
216
+ - Swipely/Docker-API 1.7.3
217
+ Content-Type:
218
+ - text/plain
219
+ response:
220
+ status:
221
+ code: 200
222
+ message:
223
+ headers:
224
+ Content-Type:
225
+ - application/json
226
+ Date:
227
+ - Mon, 02 Dec 2013 22:52:16 GMT
228
+ Content-Length:
229
+ - '2'
230
+ body:
231
+ encoding: UTF-8
232
+ string: '[]'
233
+ http_version:
234
+ recorded_at: Mon, 02 Dec 2013 22:52:16 GMT
235
+ recorded_with: VCR 2.8.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.3
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
@@ -21,7 +21,7 @@ http_interactions:
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- V2VkLCAzMCBPY3QgMjAxMyAxNDowNToyMiBHTVQ=
24
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOCBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
@@ -32,7 +32,7 @@ http_interactions:
32
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
34
  http_version:
35
- recorded_at: Wed, 30 Oct 2013 14:05:23 GMT
35
+ recorded_at: Mon, 02 Dec 2013 17:33:19 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: unix:///var/run/docker.sock/v1.6/containers/create
@@ -41,7 +41,7 @@ http_interactions:
41
41
  string: ! '{"Image":"base","Cmd":["true"]}'
42
42
  headers:
43
43
  User-Agent:
44
- - Swipely/Docker-API 1.6.0
44
+ - Swipely/Docker-API 1.7.3
45
45
  Content-Type:
46
46
  - application/json
47
47
  response:
@@ -52,26 +52,26 @@ http_interactions:
52
52
  !binary "Q29udGVudC1UeXBl":
53
53
  - !binary |-
54
54
  YXBwbGljYXRpb24vanNvbg==
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOSBHTVQ=
55
58
  !binary "Q29udGVudC1MZW5ndGg=":
56
59
  - !binary |-
57
60
  MjE=
58
- !binary "RGF0ZQ==":
59
- - !binary |-
60
- V2VkLCAzMCBPY3QgMjAxMyAxNDowNToyMyBHTVQ=
61
61
  body:
62
62
  encoding: US-ASCII
63
- string: ! '{"Id":"b03be3af7e3e"}'
63
+ string: ! '{"Id":"2d80c73471b2"}'
64
64
  http_version:
65
- recorded_at: Wed, 30 Oct 2013 14:05:23 GMT
65
+ recorded_at: Mon, 02 Dec 2013 17:33:19 GMT
66
66
  - request:
67
67
  method: post
68
- uri: unix:///var/run/docker.sock/v1.6/containers/b03be3af7e3e/start
68
+ uri: unix:///var/run/docker.sock/v1.6/containers/2d80c73471b2/start
69
69
  body:
70
70
  encoding: UTF-8
71
71
  string: ! '{}'
72
72
  headers:
73
73
  User-Agent:
74
- - Swipely/Docker-API 1.6.0
74
+ - Swipely/Docker-API 1.7.3
75
75
  Content-Type:
76
76
  - application/json
77
77
  response:
@@ -79,31 +79,31 @@ http_interactions:
79
79
  code: 204
80
80
  message:
81
81
  headers:
82
- !binary "Q29udGVudC1UeXBl":
82
+ !binary "RGF0ZQ==":
83
83
  - !binary |-
84
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
84
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOSBHTVQ=
85
85
  !binary "Q29udGVudC1MZW5ndGg=":
86
86
  - !binary |-
87
87
  MA==
88
- !binary "RGF0ZQ==":
88
+ !binary "Q29udGVudC1UeXBl":
89
89
  - !binary |-
90
- V2VkLCAzMCBPY3QgMjAxMyAxNDowNToyMyBHTVQ=
90
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
91
91
  body:
92
92
  encoding: US-ASCII
93
93
  string: ''
94
94
  http_version:
95
- recorded_at: Wed, 30 Oct 2013 14:05:23 GMT
95
+ recorded_at: Mon, 02 Dec 2013 17:33:19 GMT
96
96
  - request:
97
97
  method: post
98
- uri: unix:///var/run/docker.sock/v1.6/commit?container=b03be3af&repo=test%2Fbase
98
+ uri: unix:///var/run/docker.sock/v1.6/commit?container=2d80c734&repo=test%2Fbase
99
99
  body:
100
- encoding: US-ASCII
101
- string: ''
100
+ encoding: UTF-8
101
+ string: 'null'
102
102
  headers:
103
103
  User-Agent:
104
- - Swipely/Docker-API 1.6.0
104
+ - Swipely/Docker-API 1.7.3
105
105
  Content-Type:
106
- - text/plain
106
+ - application/json
107
107
  response:
108
108
  status:
109
109
  code: 201
@@ -112,26 +112,56 @@ http_interactions:
112
112
  !binary "Q29udGVudC1UeXBl":
113
113
  - !binary |-
114
114
  YXBwbGljYXRpb24vanNvbg==
115
+ !binary "RGF0ZQ==":
116
+ - !binary |-
117
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOSBHTVQ=
115
118
  !binary "Q29udGVudC1MZW5ndGg=":
116
119
  - !binary |-
117
120
  MjE=
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ! '{"Id":"52e99fde55be"}'
124
+ http_version:
125
+ recorded_at: Mon, 02 Dec 2013 17:33:19 GMT
126
+ - request:
127
+ method: get
128
+ uri: unix:///var/run/docker.sock/v1.6/images/json
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ''
132
+ headers:
133
+ User-Agent:
134
+ - Swipely/Docker-API 1.7.3
135
+ Content-Type:
136
+ - text/plain
137
+ response:
138
+ status:
139
+ code: 200
140
+ message:
141
+ headers:
142
+ !binary "Q29udGVudC1UeXBl":
143
+ - !binary |-
144
+ YXBwbGljYXRpb24vanNvbg==
118
145
  !binary "RGF0ZQ==":
119
146
  - !binary |-
120
- V2VkLCAzMCBPY3QgMjAxMyAxNDowNToyMyBHTVQ=
147
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOSBHTVQ=
148
+ !binary "Q29udGVudC1MZW5ndGg=":
149
+ - !binary |-
150
+ ODY1
121
151
  body:
122
152
  encoding: US-ASCII
123
- string: ! '{"Id":"ccfa3226ea18"}'
153
+ string: ! '[{"Repository":"test/base","Tag":"latest","Id":"52e99fde55be23a6cec1a36cbf3cd0e49c6a9bc6e3a335d7e9b9e237d1b63b6f","Created":1386005599,"Size":16391,"VirtualSize":180132526},{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135}]'
124
154
  http_version:
125
- recorded_at: Wed, 30 Oct 2013 14:05:23 GMT
155
+ recorded_at: Mon, 02 Dec 2013 17:33:19 GMT
126
156
  - request:
127
157
  method: post
128
- uri: unix:///var/run/docker.sock/v1.6/images/ccfa3226ea18/push
158
+ uri: unix:///var/run/docker.sock/v1.6/images/test/base/push
129
159
  body:
130
160
  encoding: US-ASCII
131
161
  string: ''
132
162
  headers:
133
163
  User-Agent:
134
- - Swipely/Docker-API 1.6.0
164
+ - Swipely/Docker-API 1.7.3
135
165
  Content-Type:
136
166
  - text/plain
137
167
  X-Registry-Auth:
@@ -146,16 +176,27 @@ http_interactions:
146
176
  YXBwbGljYXRpb24vanNvbg==
147
177
  !binary "RGF0ZQ==":
148
178
  - !binary |-
149
- V2VkLCAzMCBPY3QgMjAxMyAxNDowNToyMyBHTVQ=
179
+ TW9uLCAwMiBEZWMgMjAxMyAxNzozMzoxOSBHTVQ=
150
180
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
151
181
  - !binary |-
152
182
  Y2h1bmtlZA==
153
183
  body:
154
184
  encoding: US-ASCII
155
- string: ! '{"status":"The push refers to an image: [ccfa3226ea18]"}{"status":"Pushing
156
- ccfa3226ea183d5a53a19d66aa9b9eb0202f23f1a8850a3635894fbe60c74232"}{"error":"HTTP
157
- code 404 while uploading metadata: unexpected end of JSON input","errorDetail":{"code":404,"message":"HTTP
158
- code 404 while uploading metadata: unexpected end of JSON input"}}'
185
+ string: ! '{"status":"The push refers to a repository [test/base] (len: 1)"}{"status":"Sending
186
+ image list"}{"status":"Pushing repository test/base (1 tags)"}{"status":"Pushing
187
+ 27cf784147099545"}{"status":"Image 27cf784147099545 already pushed, skipping"}{"status":"Pushing
188
+ tags for rev [27cf784147099545] on {https://registry-1.docker.io/v1/repositories/test/base/tags/latest}"}{"status":"Pushing
189
+ tags for rev [b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc]
190
+ on {https://registry-1.docker.io/v1/repositories/test/base/tags/latest}"}{"status":"Image
191
+ b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc already pushed,
192
+ skipping"}{"status":"Pushing 52e99fde55be23a6cec1a36cbf3cd0e49c6a9bc6e3a335d7e9b9e237d1b63b6f"}{"status":"Buffering
193
+ to disk","progress":"10240/? (n/a)"}{}{"status":"Pushing","progress":" 512
194
+ B/10.24 kB (5%)"}{"status":"Pushing","progress":"1.024 kB/10.24 kB (10%)"}{"status":"Pushing","progress":"1.536
195
+ kB/10.24 kB (15%)"}{"status":"Pushing","progress":"2.048 kB/10.24 kB (20%)"}{"status":"Pushing","progress":"
196
+ 2.56 kB/10.24 kB (25%)"}{"status":"Pushing","progress":"3.072 kB/10.24 kB
197
+ (30%)"}{"status":"Pushing","progress":"3.584 kB/10.24 kB (35%)"}{"status":"Pushing","progress":"4.096
198
+ kB/10.24 kB (40%)"}{}{"status":"Pushing tags for rev [52e99fde55be23a6cec1a36cbf3cd0e49c6a9bc6e3a335d7e9b9e237d1b63b6f]
199
+ on {https://registry-1.docker.io/v1/repositories/test/base/tags/latest}"}'
159
200
  http_version:
160
- recorded_at: Wed, 30 Oct 2013 14:05:23 GMT
161
- recorded_with: VCR 2.6.0
201
+ recorded_at: Mon, 02 Dec 2013 17:33:24 GMT
202
+ recorded_with: VCR 2.7.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-20 00:00:00.000000000 Z
12
+ date: 2013-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
@@ -205,6 +205,7 @@ files:
205
205
  - spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml
206
206
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml
207
207
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml
208
+ - spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml
208
209
  - spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml
209
210
  - spec/vcr/Docker_Container/_delete/deletes_the_container.yml
210
211
  - spec/vcr/Docker_Container/_export/yields_each_chunk.yml
@@ -228,6 +229,8 @@ files:
228
229
  - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml
229
230
  - spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml
230
231
  - spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml
232
+ - spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml
233
+ - spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml
231
234
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml
232
235
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml
233
236
  - spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml
@@ -290,6 +293,7 @@ test_files:
290
293
  - spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml
291
294
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml
292
295
  - spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml
296
+ - spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml
293
297
  - spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml
294
298
  - spec/vcr/Docker_Container/_delete/deletes_the_container.yml
295
299
  - spec/vcr/Docker_Container/_export/yields_each_chunk.yml
@@ -313,6 +317,8 @@ test_files:
313
317
  - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml
314
318
  - spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml
315
319
  - spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml
320
+ - spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml
321
+ - spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml
316
322
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml
317
323
  - spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml
318
324
  - spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml
@@ -325,4 +331,3 @@ test_files:
325
331
  - spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml
326
332
  - spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml
327
333
  - spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml
328
- has_rdoc: