docker-registry-sync 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/docker/registry/sync/cmd.rb +13 -7
- data/lib/docker/registry/sync/s3.rb +6 -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
|
+
MDc2ZTEzMjUwZWQzN2JjMWQ2YmE1NjFhZWFhMDNkM2M3NTY5YjExMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGE1NzIzODIyNjY4NjRkZTcyYTY0YzA5YjljOWViYzZlMWVjODhmYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDE2YjMxNWJmYWYyNWRjZmFiZjRlOTRhZjAzZWVkZGU5MTIzNmU3MTEwNWMz
|
10
|
+
NmY2YmM3MTQ1MzRlOWJiMDAxOTg4NmQzZWUwMTQyNmFhYzNhNzNkYjIxMGU1
|
11
|
+
MTcwMTBiYmVmOTM5MjQyZjY1NjNkMGQ4Mzg0YzQ3MTlkNWExMWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGYzYmMwYWZkOTc4ZjEzNWM3ZTJkNmY0ZDgyMWNhZWVjYmM5YzM0YjM3Njhj
|
14
|
+
MTA0MjA2ZTEwNzc4NjcxMGY2MDgxOWFhZWUzMWI0YmIyMzIyNzk3MzExNzYx
|
15
|
+
MTAwN2NlODRmYmU0MjY5ZjQ0N2Q2MGFkNmQwZGI2YjEwMjdmNWI=
|
@@ -50,15 +50,19 @@ module Docker
|
|
50
50
|
|
51
51
|
Signal.trap('INT') do
|
52
52
|
@config.logger.error 'Received INT signal...'
|
53
|
-
@
|
54
|
-
|
55
|
-
|
53
|
+
@threads.synchronize do
|
54
|
+
@producer_finished = true
|
55
|
+
@terminated = true
|
56
|
+
@work_queue.clear
|
57
|
+
end
|
56
58
|
end
|
57
59
|
Signal.trap('TERM') do
|
58
60
|
@config.logger.error 'Received TERM signal...'
|
59
|
-
@
|
60
|
-
|
61
|
-
|
61
|
+
@threads.synchronize do
|
62
|
+
@producer_finished = true
|
63
|
+
@terminated = true
|
64
|
+
@work_queue.clear
|
65
|
+
end
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
@@ -77,7 +81,9 @@ module Docker
|
|
77
81
|
end
|
78
82
|
|
79
83
|
def finalize_workers
|
80
|
-
@
|
84
|
+
@threads.synchronize do
|
85
|
+
@producer_finished = true
|
86
|
+
end
|
81
87
|
@consumer_thread.join
|
82
88
|
@threads.each { |t| t.join unless t.nil? }
|
83
89
|
@config.logger.info "Processing job results..."
|
@@ -114,7 +114,9 @@ module Docker
|
|
114
114
|
if @config.source_sse
|
115
115
|
opts[:copy_source_sse_customer_algorithm] = 'AES256'
|
116
116
|
end
|
117
|
-
@
|
117
|
+
@threads.synchronize do
|
118
|
+
@work_queue << opts
|
119
|
+
end
|
118
120
|
sleep 0.1
|
119
121
|
end
|
120
122
|
end
|
@@ -132,7 +134,9 @@ module Docker
|
|
132
134
|
t_index = @threads.rindex { |t| t.nil? || t.status == false || t['finished'].nil? == false }
|
133
135
|
|
134
136
|
begin
|
135
|
-
|
137
|
+
@threads.synchronize do
|
138
|
+
opts = @work_queue.pop(true)
|
139
|
+
end
|
136
140
|
rescue ThreadError
|
137
141
|
@config.logger.info "No work found on the queue, sleeping..."
|
138
142
|
sleep 1
|