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 +8 -8
- data/lib/docker/registry/sync/s3.rb +2 -3
- data/lib/docker/registry/sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzk0MDU5OGZmNWUzODRlMDY3N2Q3OTQ3YWIyYTU1NjMzOTI5NGEyNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjdlZTNjNGY3YTdlYWY2ZTdmNmNjZTkxMTJlMjJmMDg0YWQ4ZDE3OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGY0M2M4MTUzMjZiOTUwNzgzYTg5NDMwNWI4NDM2ODk4YWQzMTcwNTYxYjhi
|
10
|
+
MDNhZjE0M2MyYzI3NDY0Njk2NDlhZjM1YzgyZjNhZjE2YTVlNzQ5NzNhYzNk
|
11
|
+
ZWI3M2JmZDk2YTc5OWMxZGZlZTU0OWFkYzcxZjE4MDhlYzBjNTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
141
|
-
|
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)
|