docker-registry-sync 0.2.0 → 0.2.1

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
- MjJjMmUyZWRiNWY1NjYzMDI1MTZiMjAxZDZhMWY5MDgzZjNjOTFiOA==
4
+ Yzk0MDU5OGZmNWUzODRlMDY3N2Q3OTQ3YWIyYTU1NjMzOTI5NGEyNg==
5
5
  data.tar.gz: !binary |-
6
- Nzc5MWQxNzhiZmUxOGU0NTRlNzEyYTU2MmEzODE5ODhiMTE3MDllMw==
6
+ MjdlZTNjNGY3YTdlYWY2ZTdmNmNjZTkxMTJlMjJmMDg0YWQ4ZDE3OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yzc0MTExY2M3MjkxYTFlNzQxY2ExYjhiMTg5YTI0ODI1MTY4ZDdkNDA4YmQ2
10
- MTA3ODNkMzU1ZWExODcyZTViNDExMjgzZGQ4ZjdjMDk1ZDQxNWE1YmFmNzI4
11
- YWI2ZWVkN2VmM2NlZTYyMWExMmVjZDY3OGJiZTExY2Y3NGRkZjk=
9
+ NGY0M2M4MTUzMjZiOTUwNzgzYTg5NDMwNWI4NDM2ODk4YWQzMTcwNTYxYjhi
10
+ MDNhZjE0M2MyYzI3NDY0Njk2NDlhZjM1YzgyZjNhZjE2YTVlNzQ5NzNhYzNk
11
+ ZWI3M2JmZDk2YTc5OWMxZGZlZTU0OWFkYzcxZjE4MDhlYzBjNTE=
12
12
  data.tar.gz: !binary |-
13
- NzIyMzM5OWY2ZDRkYTA2MmZlMDE5Y2ViYTZkYTE1YjE3NWVlMmFhY2RjNzZk
14
- YTM1YjJhNWQxNzQ2NDEwMjU5ZTY2NjhiZjJmOWMyNWJkYmVmZGQzYzQ5ODAw
15
- MjJkMmY4ZjZkNmQyZGFkOGFjMTBmYzRkNWEwNWNlOGE2ZDQyODU=
13
+ ZGVjZDc3ZjVjMWJlMmE1MWMyOWE5MTNiYTNlYTViZDFmMjU5NWFhOWMyMmUx
14
+ YjQ5N2JiYzZmNDQ5ZDQ5ZGI3ODllYjE0NjYxZjJkZmY4ZmEwMjVmZGRkN2Y5
15
+ NGRkNDdiYzM5YzExMTcwMThmOGQ2MDM3ODM0YjAwMjA4ZTYyOTk=
@@ -101,7 +101,6 @@ module Docker
101
101
  keys.each do |key|
102
102
  @config.logger.info "Syncing key #{source_bucket}/#{key} to bucket #{target_bucket}"
103
103
  opts = {acl: 'bucket-owner-full-control',
104
- region: target_client.get_bucket_location(bucket: target_bucket).location_constraint,
105
104
  bucket: target_bucket,
106
105
  key: key,
107
106
  copy_source: "#{source_bucket}/#{key}"}
@@ -137,8 +136,8 @@ module Docker
137
136
  @threads[t_index].join unless @threads[t_index].nil?
138
137
  @threads[t_index] = Thread.new do
139
138
  @config.logger.info "Worker syncing key: #{opts[:key]}"
140
- target_client = Aws::S3::Client.new(region: opts[:region])
141
- opts.delete :region
139
+ region = target_client.get_bucket_location(bucket: target_bucket).location_constraint
140
+ target_client = Aws::S3::Client.new(region: region)
142
141
  success = false
143
142
  begin
144
143
  target_client.copy_object(opts)
@@ -1,7 +1,7 @@
1
1
  module Docker
2
2
  module Registry
3
3
  module Sync
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-registry-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Oldfield