docker-registry-sync 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjgzYWMwMGEwZGMyMjRkZWJjZWVhZmU5NDk4MTczZjE3MmQ2MzliZQ==
4
+ MTE2MzA1NjZmNTUzYWUzY2M3ZmEyNDM0N2RjODZlMDVjMDkyZTI2MA==
5
5
  data.tar.gz: !binary |-
6
- ODBhOGFmMWRmNDhlNzVkYmI0MDg0MTdkY2YzZmVjYWFhOGIwMjZhYg==
6
+ ZDA3NTIyMmY5MzBmYjYxNDc2ZmFjN2Q5NmZlMWVkZThkMGY2MTJkOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWM1MzQyNDU5Zjg2MzNhYTMzNjEwZDQ2ZTAxNDc1ODgzMjFiNjlmYmUyMDU4
10
- Y2Y5OWRlNDI0NWMwYjgxMDcwNDc0ODIzZTVhNjllMzI3YzM5NWM3MWZjMDc0
11
- YzA5YzFhNTAyOTc4ZjEwNThkNGYwZWZkOTNlOGEwZTA3ZDhjZjU=
9
+ NzQzZmM4YzkyODliNTE2OGUzNjliYzQwNGZhNWI2ZTgwMDAwM2M3ZDZiMzhi
10
+ ZTdiZTk2NTc3YTg3NzI3Nzg5YTk3NzAzNzFhYTI3YzUxMTAzOTg5NmM2NTJm
11
+ NzkxN2JkYmZjNDUxMzcxYTc2ODU5Y2E4NGIwZmMzMTJlOTExMDg=
12
12
  data.tar.gz: !binary |-
13
- MzlmOGYxYjhkNWU4YjFjNmNhYWQ2OThlYjRiNGQ4ODg5N2RhYTQzZjljNTI4
14
- OWIxNjllNTRjNzI2NmMzZjVhYzQ2OTllZjJiYTIwYmY2Y2ZhMWIwNGVkMTY1
15
- ZmRkNzRjNDg5Yzk0MmNjYjMxNDY2NTAzZTMyYzk3YTQyMjhmNzA=
13
+ M2EyNGM3ZjE1M2ExOWYzZWVkMWY1MzU4YjQ4NDY2MzYwN2E5N2EzNDg4ZGEx
14
+ MjkxZDUyOGU0ZTM3OGE0MzRiM2QyNTJiMTU0MTc1YTUzMDEwMWQ2NWVmMzgx
15
+ M2YxNjE5M2QyZDMwNTY4MDFhYmZmMmQ0ZTRmZDcyMjc4NzdhYmE=
@@ -30,7 +30,7 @@ module Docker
30
30
  sqs_region, sqs_uri = nil, nil
31
31
  end
32
32
 
33
- @synced_images = RingBuffer.new 5000
33
+ @synced_images = RingBuffer.new 10000
34
34
 
35
35
  Docker::Registry::Sync.configure do |config|
36
36
  config.source_bucket = source_bucket
@@ -75,9 +75,9 @@ module Docker
75
75
  ancestry_resp = s3_source.get_object(bucket: source_bucket, key: "registry/images/#{image_id}/ancestry")
76
76
  # Ancestry includes self
77
77
  JSON.load(ancestry_resp.body.read).each do |image|
78
- unless @synced_images.include? image
78
+ unless @synced_images.include? "#{image}:#{region}:#{bucket}"
79
79
  sync_prefix(s3_source, s3_target, bucket, sse, "registry/images/#{image}/", source_bucket)
80
- @synced_images << image
80
+ @synced_images << "#{image}:#{region}:#{bucket}"
81
81
  end
82
82
  end
83
83
  end
@@ -1,7 +1,7 @@
1
1
  module Docker
2
2
  module Registry
3
3
  module Sync
4
- VERSION = '0.2.7'
4
+ VERSION = '0.2.8'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-registry-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Oldfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler