dockly 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/dockly.gemspec +1 -1
- data/lib/dockly/docker.rb +10 -3
- data/lib/dockly/version.rb +1 -1
- metadata +6 -6
data/dockly.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.add_development_dependency 'cane'
|
26
26
|
gem.add_development_dependency 'pry'
|
27
27
|
gem.add_development_dependency 'rake'
|
28
|
-
gem.add_development_dependency 'rspec'
|
28
|
+
gem.add_development_dependency 'rspec', '~> 2.14.1'
|
29
29
|
gem.add_development_dependency 'vcr'
|
30
30
|
gem.add_development_dependency 'webmock'
|
31
31
|
end
|
data/lib/dockly/docker.rb
CHANGED
@@ -175,9 +175,16 @@ class Dockly::Docker
|
|
175
175
|
info "Exporting the image with id #{image.id} to file #{File.expand_path(tar_path)}"
|
176
176
|
container = image.run('true')
|
177
177
|
info "created the container: #{container.id}"
|
178
|
-
|
179
|
-
container.
|
180
|
-
|
178
|
+
if ENV['SHELL_EXPORT']
|
179
|
+
command = "docker export #{container.id} | gzip > #{tar_path}"
|
180
|
+
info "running '#{command}' to export #{container.id}"
|
181
|
+
system(command)
|
182
|
+
raise "Could not export image, exit code: #{$?}" unless $?.success?
|
183
|
+
else
|
184
|
+
Zlib::GzipWriter.open(tar_path) do |file|
|
185
|
+
container.export do |chunk, remaining, total|
|
186
|
+
file.write(chunk)
|
187
|
+
end
|
181
188
|
end
|
182
189
|
end
|
183
190
|
info "done writing the docker tar: #{export_filename}"
|
data/lib/dockly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
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: 2014-
|
12
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|
@@ -192,17 +192,17 @@ dependencies:
|
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
|
-
- -
|
195
|
+
- - ~>
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 2.14.1
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
201
|
none: false
|
202
202
|
requirements:
|
203
|
-
- -
|
203
|
+
- - ~>
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
205
|
+
version: 2.14.1
|
206
206
|
- !ruby/object:Gem::Dependency
|
207
207
|
name: vcr
|
208
208
|
requirement: !ruby/object:Gem::Requirement
|