docker-registry-sync 0.2.1 → 0.2.2
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 +3 -2
- 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
|
+
ZTU5NDJkNzRlZTY2OTA5MDc4ZTYxZTE5ZjAyYThlZDlmODY3YzFjNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2NmNjE0MDFiMDVkYTA0NzE0OGNhNWU5MWU0Njg1N2MzYTlmMDBlMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDA0OTg5N2ZjY2I4YjE5MWI2NmZhMWVlNzMwYjg0NzFmOTI2YjRiYTBkYTZi
|
10
|
+
NGMzM2M0YzJmNzUyMDU1YWE3YzQ5MjkyNjUxNzU3MDIyNDNmMzYyMTE1ZmJh
|
11
|
+
MzQ4MGMxNDIzMTI1MGFjNzkwNWM1YTRiMGQwYjgyNjViMDY0YWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTM2ZWU3NDUyZWNhMjExYzg5ZDc3M2RiZGRlMzZmOTczM2NmODRlZDAyYWJl
|
14
|
+
M2VjOGE1ZTFjMmNiYjY3NTIxZmM4NTI5ZTA2M2FiZjJhMzdhZmExMGI3Y2Vl
|
15
|
+
ZjY3ZDBmODRiZTM2YzgwMzQ4MTM2NjIxMTg0YzlmZGEzYzE4NjM=
|
@@ -101,6 +101,7 @@ 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,
|
104
105
|
bucket: target_bucket,
|
105
106
|
key: key,
|
106
107
|
copy_source: "#{source_bucket}/#{key}"}
|
@@ -136,8 +137,8 @@ module Docker
|
|
136
137
|
@threads[t_index].join unless @threads[t_index].nil?
|
137
138
|
@threads[t_index] = Thread.new do
|
138
139
|
@config.logger.info "Worker syncing key: #{opts[:key]}"
|
139
|
-
|
140
|
-
|
140
|
+
target_client = Aws::S3::Client.new(region: opts[:region])
|
141
|
+
opts.delete :region
|
141
142
|
success = false
|
142
143
|
begin
|
143
144
|
target_client.copy_object(opts)
|