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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '082441d261e8b8897d2da7ae2c9ad7722439f0863926907aa27735e9154d4f37'
4
- data.tar.gz: d0c9a5fdfede301a1c3261b10bd48b1f0966db822f30423b4402d10f5713c8b8
3
+ metadata.gz: f3164096fa9d5d3b3339a0b20e3b2d3aa1d6a9afecf97d13c6405713a785b85f
4
+ data.tar.gz: 38051057bf64dc812490393a1edb92bf3bee4d375b2b8301c823acde8a2da356
5
5
  SHA512:
6
- metadata.gz: 8d1d6f257f4c4c375408fbcfd35ead79843c04acdeb9036504c6066e392ff0c7d0e06cb4920602a43da9606fe6fad6ee0bdfc2c1e6180d28f10234bded9945e9
7
- data.tar.gz: 2f0f6d6b5ad6c50fbba68a5ab9aaf4aafb60f96156efb301df92093b1df8f001dc0e4d5fe62ff7952d688095fb41581570d67bbaad98a08332c5f663204c386e
6
+ metadata.gz: 0aa1155afab2d1b987b21789a3b93e628648c848466e60ab423c86f28f94af9c1c96971f156e441f40580cbbec42e6e3308e5b2e344db1aeddbaac451ddb519a
7
+ data.tar.gz: 57090101a826b63fec9a2016d24562f0bf0e74c9fbb737463776307a4be78e1945e9043ec988b963c1a891bd6f1c5e1c8f491aa1554e2348f1361f97ec256cab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (2.20.0.pre.2)
4
+ rake_docker (2.20.0.pre.3)
5
5
  aws-sdk-ecr (~> 1.2)
6
6
  colored2 (~> 3.1)
7
7
  docker-api (>= 1.34, < 3.0)
@@ -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(filter: image)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeDocker
4
- VERSION = '2.20.0.pre.2'
4
+ VERSION = '2.20.0.pre.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20.0.pre.2
4
+ version: 2.20.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers