rake_docker 2.20.0.pre.2 → 2.20.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_docker/container.rb +10 -1
- data/lib/rake_docker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3164096fa9d5d3b3339a0b20e3b2d3aa1d6a9afecf97d13c6405713a785b85f
|
4
|
+
data.tar.gz: 38051057bf64dc812490393a1edb92bf3bee4d375b2b8301c823acde8a2da356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa1155afab2d1b987b21789a3b93e628648c848466e60ab423c86f28f94af9c1c96971f156e441f40580cbbec42e6e3308e5b2e344db1aeddbaac451ddb519a
|
7
|
+
data.tar.gz: 57090101a826b63fec9a2016d24562f0bf0e74c9fbb737463776307a4be78e1945e9043ec988b963c1a891bd6f1c5e1c8f491aa1554e2348f1361f97ec256cab
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'docker'
|
4
|
+
require 'json'
|
4
5
|
|
5
6
|
module RakeDocker
|
6
7
|
module Container
|
@@ -179,7 +180,7 @@ module RakeDocker
|
|
179
180
|
|
180
181
|
def ensure_image_available(image)
|
181
182
|
reporter.checking_if_image_available(image)
|
182
|
-
matching_images = Docker::Image.all(
|
183
|
+
matching_images = Docker::Image.all(filters: filters(image))
|
183
184
|
if matching_images.empty?
|
184
185
|
reporter.image_not_available(image)
|
185
186
|
pull_image(image)
|
@@ -304,3 +305,11 @@ module RakeDocker
|
|
304
305
|
end
|
305
306
|
end
|
306
307
|
end
|
308
|
+
|
309
|
+
def filters(image)
|
310
|
+
JSON.generate(
|
311
|
+
{
|
312
|
+
reference: [image]
|
313
|
+
}
|
314
|
+
)
|
315
|
+
end
|
data/lib/rake_docker/version.rb
CHANGED